what is cal command with its examples

  • About cal : displays a calendar
  • Comes From : util-linux-ng-2.17.2-6.el6.i686

Examples:

1. To display the calender for 2023

$ cal 2023

2. To display single month output

$ cal -1

3. To display previous/current/next month output

$ cal -3

4. To display Sunday as a first day

$ cal -s

5. To display monday as a first day of the output

$ cal -m

6. To display the Julian dates

$ cal -j

7. To display the calender of current year

$ cal -y

8. To display the version information

$ cal -V

Leave a Reply

Your email address will not be published. Required fields are marked *