terminal.cab

All commands

date

Topic: System and services

Program: date

Shows the date and time.

Package: basis-info

Usage

date [OPTION]... [+FORMAT]

Description

Show the date and time (here always in UTC). With +FORMAT, show it in that form, for example date +%Y-%m-%d. The % codes: %Y year %m month (01..12) %d day (01..31) %e day, space padded %H hour %M minute %S second %j day of year %a Sat %A Saturday %b Oct %B October %u weekday as a number, Monday = 1, Sunday = 7 %Z time zone %% a %

Options in the simulator

12 more options of the real program, not in the simulator yet
  • -d, --date needs a value not in the simulator yet

    Explanation to come

  • --debug not in the simulator yet

    Explanation to come

  • -f, --file needs a value not in the simulator yet

    Explanation to come

  • -I value optional not in the simulator yet

    Explanation to come

  • --iso-8601 value optional not in the simulator yet

    Explanation to come

  • --resolution not in the simulator yet

    Explanation to come

  • -R, --rfc-email not in the simulator yet

    Explanation to come

  • --rfc-3339 needs a value not in the simulator yet

    Explanation to come

  • -r, --reference needs a value not in the simulator yet

    Explanation to come

  • -s, --set needs a value not in the simulator yet

    Explanation to come

  • -u, --utc, --universal not in the simulator yet

    Explanation to come

  • --version not in the simulator yet

    On a real system it prints the version of the program.

Examples

From the lesson What is a terminal? Reading the prompt
date
Sat Oct 17 09:00:00 UTC 2026

Try it in the terminal

Where you learn it

Lessons

All commands