On systemd, inspect local time, UTC, RTC, timezone, and NTP synchronization without changing anything.
Which command is appropriate?
timedatectl status summarizes system clock, RTC, timezone, and synchronization state.
Detailed explanation
date '+%F %T'Incorrect. date only displays the current date and time.
Incorrect. date only displays the current date and time.
hwclock --showIncorrect. hwclock --show reads only the RTC.
Incorrect. hwclock --show reads only the RTC.
timedatectl statusCorrect. timedatectl status provides the combined overview.
Correct. timedatectl status provides the combined overview.
ntpq -pIncorrect. ntpq -p lists ntpd peers rather than the complete system status.
Incorrect. ntpq -p lists ntpd peers rather than the complete system status.
Try it yourself
An example you can run in a temporary verification environment.
timedatectl status 2>&1 | sed -n '1,7p'Expected result
Local time、Universal time、RTC time、Time zone、System clock synchronized等(稼働環境依存)Key points
- Read-only status
- System clock and RTC
- NTP state
Notes
- Environment: systemd稼働環境 / 読取のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.