See the current time, format timestamps and convert epochs directly from the shell. 04.03.2026 | reading time: 2 min Learn to read and format the system clock from the shell and to convert timestamps with the Linux date command; short examples will show how to view, format and parse time. Quick demo Try these commands in a terminal: ```\n$ date\nTue Mar 4 15:12:30 UTC 2026\n\n$ date -u\nTue Mar 4 15:12:30 UTC 2026\n\n$ date +"%Y-%m-%d %H:%M:%S"\n2026-03-04 15:12:30\n\n$ date -d "@1672531200"\n2023-01-01 00:00:00 UTC\n``` Format, parse and convert Use `+FORMAT` to control output, `-u` for UTC, `-d` to parse a string and `%s` to print seconds since the epoch; note that changing the system clock requires root and on non-GNU systems like macOS the `date` options differ, so prefer timedatectl or hwclock for persistent changes. Practical caveats Remember that GNU date supports `%N` for nanoseconds and `-d "@SECONDS"` to convert epochs, while BSD/macOS date lacks `-d` and uses different flags, so test scripts on target systems and avoid setting time on production hosts without a clear maintenance window. Companion tools For real-world time management pair `date` with timedatectl for systemd-controlled settings, hwclock to sync the RTC and chrony or ntpd for network time synchronization; these tools handle persistence and network discipline better than ad-hoc `date -s` usage. Ready for the next step Mastering `date` helps with log inspection, backup timestamps and automation; deepen that knowledge, practice on different distros and consider exam-focused training such as the intensive courses at bitsandbytes.academy for CompTIA Linux+ or LPIC-1 preparation. Join Bits & Bytes Academy First class LINUX exam preparation. utilities scripting troubleshooting