Title: date and cal Commands
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

date

The date command can display the date, time, time zone and more.

A date string can be customized to display the format of your choice. Check the man page for more options.

cal

The cal command displays the current month, with the current day highlighted.

You can select any month in the past or the future.  (Paul Cobbault, p. 138-139)

cal yyyy

- Displays calendar for four digit year entered.

cal mm yyyy

- Displays calendar for the month (mm) of the year (yyyy).  Months may be one digit, but years MUST be four digits.