cal command in Linux with Examples
If a user wants a quick view of calendar in Linux terminal, cal is the command for you. By default, cal command shows current month calendar as output.
cal command is a calendar command in Linux which is used to see the calendar of a specific month or a whole year.
Syntax:
cal [ [ month ] year]
Rectangular bracket means it is optional, so if used without option, it will display a calendar of current month and year.
- cal : Shows current month calendar on the terminal.

- cal 08 2000 : Shows calendar of selected month and year.

- cal 2018 : Shows the whole calendar of the year.

- cal 2018 | more : But year may not be visible in the same screen use more with cal use spacebar to scroll down.

- cal -3 : Shows calendar of previous, current and next month
Recommended Posts:
- apt command in linux with examples
- if command in linux with examples
- arp command in Linux with examples
- last command in Linux with Examples
- Cat command in Linux with examples
- ssh command in Linux with Examples
- cd command in Linux with Examples
- cmp Command in Linux with examples
- less command in Linux with Examples
- rm command in Linux with examples
- scp command in Linux with Examples
- gdb command in Linux with examples
- ed command in Linux with examples
- sum command in Linux with Examples
- w command in Linux with Examples
- gs command in Linux with Examples
- seq command in Linux with Examples
- look command in Linux with Examples
- atd command in Linux with examples
- tee command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


