Files
tldr/pages.zh/linux/cal.md

32 lines
485 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 日历
> 显示当前日期高亮的日历。
> 更多信息:<https://manned.org/cal>。
- 显示当前月份的日历:
`cal`
- 显示跨越日期的 [3] 个月:
`cal -3`
- 显示当前 [年] 的完整日历:
`cal --year`
- 显示接下来的十二个月:
`cal --twelve`
- 将星期一作为一周的第一天:
`cal --monday`
- 显示特定年份的日历4位数字
`cal {{year}}`
- 显示特定月份和年份的日历:
`cal {{month}} {{year}}`