Find the zoneinfo file for IANA identifier Europe/Berlin.
Which path is representative?
/usr/share/zoneinfo mirrors IANA identifiers as a directory hierarchy of compiled timezone data.
Detailed explanation
/etc/timezone/Europe/BerlinIncorrect. /etc/timezone is usually a text file, not a directory.
Incorrect. /etc/timezone is usually a text file, not a directory.
/usr/share/zoneinfo/Europe/BerlinCorrect. Europe/Berlin is represented under /usr/share/zoneinfo.
Correct. Europe/Berlin is represented under /usr/share/zoneinfo.
/var/lib/locale/Europe/BerlinIncorrect. /var/lib/locale is not the standard timezone database path.
Incorrect. /var/lib/locale is not the standard timezone database path.
/etc/localtime/Europe/BerlinIncorrect. /etc/localtime is the selected zone file or symlink, not the hierarchy.
Incorrect. /etc/localtime is the selected zone file or symlink, not the hierarchy.
Try it yourself
An example you can run in a temporary verification environment.
test -f /usr/share/zoneinfo/Europe/Berlin && printf '%s\n' /usr/share/zoneinfo/Europe/BerlinExpected result
/usr/share/zoneinfo/Europe/BerlinKey points
- Zoneinfo database
- Identifier maps to path
- Compiled data
Notes
- Environment: tzdata導入済みLinux / 存在確認のみ
- 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.