Answer questions about region and country to find an appropriate TZ identifier.
Make the system change separately.
Which command is appropriate?
tzselect interactively helps choose a timezone identifier; applying it to the system is a separate operation.
Detailed explanation
locale -aIncorrect. locale -a lists locale names.
Incorrect. locale -a lists locale names.
tzselectCorrect. tzselect asks questions and suggests a timezone identifier.
Correct. tzselect asks questions and suggests a timezone identifier.
iconv -lIncorrect. iconv -l lists encodings.
Incorrect. iconv -l lists encodings.
timedatectl list-localesIncorrect. This is not a timedatectl timezone-selection subcommand.
Incorrect. This is not a timedatectl timezone-selection subcommand.
Try it yourself
An example you can run in a temporary verification environment.
command -v tzselectExpected result
tzselect実行fileのpathKey points
- Interactive selection
- Provides TZ value
- Does not change system
Notes
- Environment: tzdata付属tzselect / path確認のみ
- 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.