Home » linux » Linux and Unix cal command tutorial with examples

Linux and Unix cal command tutorial with examples

Command “cal” stands for calendar.
This command is used to see the calendar of a specific month/ year or both.
The basic syntax of command “cal”.

[month]- is used for specify month
[year] – is used for specify year

To see the calendar of current month

type “cal” command on terminal and press enter and output will be calendar of the current month

Output:

To see the calendar of specific month/Year [for example march 2019]

type below command in terminal.

Output:

To see the calendar of the specific year(all 12 months)
To see the calendar of the year 2012. Type “cal” command and attach desired year as shown below

Output

In output calendar of 2012(all 12 months) will display in the terminal.

Please follow and like us:
error