On a system using systemd, change the system-wide time zone to Asia/Tokyo.
Which command is appropriate?
timedatectl set-timezone ZONE changes the system time zone on a systemd-based system.
Detailed explanation
timedatectl set-time Asia/TokyoIncorrect. set-time sets a date/time value, not a time-zone identifier.
timedatectl set-ntp Asia/TokyoIncorrect. set-ntp enables or disables time synchronization.
timedatectl set-timezone Asia/TokyoCorrect. It changes the system time zone to Asia/Tokyo.
tzselect Asia/TokyoIncorrect. tzselect suggests a value but does not directly change the system setting.
Try it yourself
An example you can run in a temporary verification environment.
timedatectl --help | grep -E 'set-timezone'Expected result
system timezoneを設定する説明行Key points
- set-timezone
- Pass a zone identifier
- Requires administrative permission
Notes
- Environment: systemd timedatectl help / 設定変更なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
System clock
The kernel-maintained time used by applications and timestamps.
RTC
The battery-backed hardware clock used to seed time during boot.
NTP synchronization
A process that compares a clock with remote time sources and corrects drift.