The calendar file-usually in the home directory-is
used as a reminder file.
Each entry in the file is one line long, and starts with a date in
the form May 21 or 5/21 followed by some message.
An asterisk (
) represents all months (in the case * 21, every
21st), or every day (May *).
When the program calendar is started, UNIX looks into the current directory for a file called calendar, and reads it. If any of the dates represent the current date, or the day following (excluding weekends), it prints the message line on the console.
It is common to see the command
calendarin the .login or .profile file.