Forrest logo
tool overview
On this page you find all important commands for the CLI tool calendar. If the command you are looking for is missing please ask our AI.

calendar

The "calendar" command line tool is a built-in utility in some Unix-like operating systems, including Linux and macOS. It allows users to display a textual calendar for a specific month or year directly in the terminal.

By default, running "calendar" without any arguments will display the calendar for the current month. However, you can specify a different month and year using command-line options. For example, "calendar 05 2022" will display the calendar for May 2022.

The calendar utility also supports additional options to customize the output. Some common options include:

  • "-A num": Display the specified number of months after the requested month.
  • "-B num": Display the specified number of months before the requested month.
  • "-y": Display a calendar for the entire year.
  • "-j": Display the Julian calendar.
  • "-w": Display the week number for each week.
  • "-s": Start the week on Sunday rather than Monday.

The output of the calendar command can be redirected to a file or piped to another command for further processing. It can be useful for quickly checking a date or planning events without the need for a graphical user interface.

List of commands for calendar:

  • calendar:tldr:58f19 calendar: Look [B]ack, showing events for the previous 7 days.
    $ calendar -B ${7}
    try on your machine
    explain this command
  • calendar:tldr:a0e7b calendar: Show events for today and tomorrow (or the weekend on Friday) from the default calendar.
    $ calendar
    try on your machine
    explain this command
  • calendar:tldr:da0f8 calendar: Look [A]head, showing events for the next 30 days.
    $ calendar -A ${30}
    try on your machine
    explain this command
  • calendar:tldr:fd9d3 calendar: Show events from a custom calendar [f]ile.
    $ calendar -f ${filename}
    try on your machine
    explain this command
tool overview