tldr/pages.zh/linux/cal.md

25 lines
400 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# cal
> 打印日历信息,高亮显示当前日期。
> 更多信息:<https://manned.org/cal>.
- 显示当前月份的日历:
`cal`
- 显示上个月、当前月和下个月:
`cal -3`
- 使用星期一作为一周的第一天:
`cal --monday`
- 显示特定年份的日历4位数字
`cal {{年份}}`
- 显示特定月份和年份的日历:
`cal {{月份}} {{年份}}`