1. Command Introduction The cal (calendar) command is used to display the Gregorian calendar for the current or specified date. 2. Command format cal [OPTIONS] [[[DAY] MONTH] YEAR] You can specify YEAR (1-9999), MONTH (1-12), and DAY (1-31). Executing cal alone without any options or parameters displays the calendar for the current month. 3. Option Description -1, --one Show only the current month (default) -3, --three Display the monthly calendar for the previous month, current month, and next month -h, --help Display this help message and exit -j, --julian Display the date in the year on the first day of the month -m, --monday Display Monday as the first day of the week -s, --sunday Display Sunday as the first day of the week (default) -V, --version Show version information and exit -y, --year Display the calendar for the current year 4. Common Examples (1) Display the current month. cal (2) Displays the current month, with Monday as the first day of the week. cal -m (3) Display the current month and the day of the year. cal -j (4) A monthly calendar showing the previous month, current month, and next month. cal-3 (5) Display the specified date. cal 24 6 2015 References [1] cal(1) manual The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: sql script function to write postgresql database to implement parsing
>>: Practice of using Vite2+Vue3 to render Markdown documents
Alibaba Cloud purchases servers Purchase a cloud ...
Preface In the case of primary key conflict or un...
inline-flex is the same as inline-block. It is a ...
Regarding the issue of MySQL remote connection, w...
This article shares with you how to use Vue to ch...
What is JSX JSX is a syntax extension of Javascri...
Yesterday I wanted to use a:visited to change the...
Table of contents What is FormData? A practical e...
Table of contents 1. Cause 2. Equipment Informati...
For any DBMS, indexes are the most important fact...
Preface In fact, the humble "!" has man...
JS running trilogy js running code is divided int...
1. Connect to MySQL Format: mysql -h host address...
1. List The list ul container is loaded with a fo...
This article example shares the specific code of ...