2019-02-26 03:08:44 +00:00
|
|
|
# cal
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 打印日历信息。
|
2021-08-23 20:33:24 +01:00
|
|
|
> 更多信息:<https://ss64.com/osx/cal.html>.
|
2019-02-26 03:08:44 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 打印本月日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示上个月,当前月,下个月的日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal -3`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示指定月份的日历(月份为 1-12 月):
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal -m {{月}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示全年日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal -y`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示指定某年的日历(年份为 4 个数字):
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal {{年}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示特定年和月的日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal {{月}} {{年}}`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示指定年的复活节日期:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`ncal -e {{年}}`
|