Linux command
ncal 命令
趣味
复制后可按需替换文件名、目录或参数。
常用示例
Example
ncal
Example
ncal [month] [year]
Example
ncal -y [year]
说明
ncal displays a calendar in a vertical format where weeks run down the screen. It is an alternative interface to the cal command, which displays calendars horizontally. The vertical format is useful for terminals with limited width or when comparing dates across weeks. Both ncal and cal are typically provided by the same package on most systems.
参数
- -y
- Display entire year.
- -3
- Display previous, current, and next month.
- -1
- Display only current month.
- -A _months_
- Display months after current.
- -B _months_
- Display months before current.
- -h
- Turn off highlighting of today.
- -M
- Weeks start on Monday.
- -S
- Weeks start on Sunday.
- -b
- Use horizontal layout (like cal).
FAQ
What is the ncal command used for?
ncal displays a calendar in a vertical format where weeks run down the screen. It is an alternative interface to the cal command, which displays calendars horizontally. The vertical format is useful for terminals with limited width or when comparing dates across weeks. Both ncal and cal are typically provided by the same package on most systems.
How do I run a basic ncal example?
Run `ncal` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -y do in ncal?
Display entire year.