Search available time zones
Build a paste-ready command, then review its compatibility and effects before running it.
timedatectl list-timezones | rg '^Europe/' | headread-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementstimedatectltimedatectl must be installed and available on PATH.
Version supporttimedatectl Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsEurope/AmsterdamRepresentative successful output; values vary with the selected target and system state.
Known errorstimedatectl: command not foundtimedatectl is missing or is not available on PATH.
Verifytimedatectl list-timezones | rg '^Europe/' | headThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01timedatectlCommandRuns the timedatectl stage of this one-liner.
02list-timezonesArgumentPasses list-timezones to timedatectl.
03|PipelinePasses the output on the left to the command on the right.
04rgCommandRuns the rg stage of this one-liner.
05'^Europe/'ArgumentPasses '^Europe/' to rg.
06|PipelinePasses the output on the left to the command on the right.
07headCommandRuns the head stage of this one-liner.
Example input
timedatectl list-timezones | rg '^Europe/' | head
Example output
Europe/Amsterdam
Europe/Andorra
Europe/Astrakhan
Europe/Athens
Europe/Belgrade
Illustrative output — exact values vary by system and data.
Official sources