Name
calendar
Synopsis
calendar [option]Reads your calendar file and displays all
lines that contain the current date. The
calendar file is like a memo board. You
create the file and add entries such as the following:
5/4 meeting with design group at 2 pm may 6 pick up anniversary card on way home
When you run calendar on May 4, the first line is
displayed. calendar can be automated by using
crontab or at, or by including
it in your startup files .profile or .
login.
Options
-
-Anum Print the next
numdays in the future, including today.-
-a Allow a privileged user to invoke
calendarfor all users, searching each user’s login directory for a file namedcalendar. Entries that match are sent to a user via mail. This feature is intended for use viacron. It isn’t recommended in networked environments with large user bases.-
-Bnum Print the previous
numdays in the past, including today.-
-dMMDD[[YY]YY] Display lines for the given date.
-
-Fdaynum Specify “virtual Friday,” the last day before the weekend.
-
-ffilename Display calendar items from file
filenameinstead of the defaultcalendarfile in your home directory.-
-ln Display calendar items up to
ndays ahead from the current date as well.-
-Wnum Print the next
numdays in the future, including today, but not counting weekend days in the count.-
-wn Force calendar to skip over weekends. Display calendar items up to
ndays ahead from the current date only when the current day is a Friday. The default fornis 2.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access