- Linux Training
- Desktop Tutorials
- Server Tutorials
|Linux Commands - Managing System and Program Info|
If you are looking to see what day your birthday will appear in 237 years, this is the program you need. cal can display any year from 1 to 9999.
The simplest way to use cal is to just type cal and you will get the current month and year.
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 1112 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
If you want a specific month of a year type the month and year:
cal september 2005
Do not abbreviate the year by using 05 as you will get the year 05 not 2005.
-3 print months before and after selected month
-J display Julian Calendar
-m print a calendar with Monday as first day of week
-w print the number of week below each column
-y print present year
This will print the months before and after present month.
This command shows the days starting with Monday instead of Sunday.
This will display the whole year.