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.
tzselectCorrect. tzselect interactively guides the user to a TZ identifier.
date --timezoneIncorrect. date does not provide this interactive selector.
locale -aIncorrect. 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
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.