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.
Incorrect. set-time sets a date/time value, not a time-zone identifier.
timedatectl set-ntp Asia/TokyoIncorrect. set-ntp enables or disables time synchronization.
Incorrect. set-ntp enables or disables time synchronization.
timedatectl set-timezone Asia/TokyoCorrect. It changes the system time zone to Asia/Tokyo.
Correct. It changes the system time zone to Asia/Tokyo.
tzselect Asia/TokyoIncorrect. tzselect suggests a value but does not directly change the system setting.
Incorrect. 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
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.