Choose a regional time zone interactively and obtain an identifier such as Asia/Tokyo.
Do not automatically change the system setting.
Which command is appropriate?
tzselect asks interactive questions and suggests a TZ identifier; setting the system zone is a separate operation.
Detailed explanation
timedatectl set-timezoneIncorrect. set-timezone changes the system and needs a zone argument.
Incorrect. set-timezone changes the system and needs a zone argument.
tzselectCorrect. tzselect interactively guides the user to a TZ identifier.
Correct. tzselect interactively guides the user to a TZ identifier.
date --timezoneIncorrect. date does not provide this interactive selector.
Incorrect. date does not provide this interactive selector.
locale -aIncorrect. locale -a lists locales, not time zones.
Incorrect. locale -a lists locales, not time zones.
Try it yourself
An example you can run in a temporary verification environment.
tzselect --help 2>&1 | sed -n '1,8p'Expected result
timezone selectionの使用方法Key points
- Interactive selection
- It suggests a TZ value
- System change is separate
Notes
- Environment: tzselect 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.