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