Linux command detailed-cal

Source: Internet
Author: User

Cal command can be used to display a Gregorian calendar. The Gregorian calendar is now the International Universal Calendar, also known as Griel, the Gregorian calendar. " Solar " is also known as " Solar calendar ", the earth around the sun for a week for a year, for the western countries are universal, it is also known as " Western calendar ".

1 . Command format:

C Al ? [ parameters ] [ month ] [ year ]

2 . Command function:

used to view time information such as a calendar, such as a single parameter, indicates the year (1-9999) , if there are two parameters, the month and year

3 . Command parameters:

-1 Show Calendar for one months

-3 Display System One month, current month, next one months calendar

- S show Sunday for the first day of one weeks, the default format

- M show Monday for the first day of one weeks
-j displays the day of the year in the current year (the date of the month is counted from 1 months 1 , and the number of days in the year is displayed by default)
-Y Displays the calendar for the current year

4 . Usage Examples:

Example 1: Display the current month calendar

Command:

Aa.

Output:

Example 2: Display a calendar for a specified month

Command:

Cal 9 2012

Output:

Example 3: Displaying the 2013 calendar

Command:

Cal-y 2013

Cal 2013

Output:

Example 4: displayed from 1 months 1 days of the day

Command:

Cal?-j

Output:

Example 5: Monday shown in the first column

Command:

Cal-m

Output:

Linux command detailed-cal

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.