Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
tzselect asks for the continent, country and region and prints the zone name (like Asia/Riyadh) plus a TZ line you can use. Then set it with timedatectl set-timezone NAME.
Zo schrijf je het
tzselect [-c COORD] [-n LIMIT]Opties 4
Meest gebruikt
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1Find a zone interactively
tzselectChoose continent, country, region; it prints the name.
2Then set it
timedatectl set-timezone Asia/Riyadhtzselect only shows the name.
3By coordinates
tzselect -c +2430+04643 -n 3The 3 zones closest to Riyadh.
4Alternative: list and grep
timedatectl list-timezones | grep -i cairo Africa/CairoFaster when you know the city.
5Test a zone first
TZ='Africa/Cairo' dateShows the local time there.
6Use in a user profile
echo "TZ='Europe/Amsterdam'; export TZ" >> ~/.bash_profileOnly this user sees that zone.
7Zone files
Every zone is a file.
8Current zone
timedatectl show -p Timezone --valueThe system zone.
9Check daylight saving changes
zdump -v Europe/Amsterdam | grep 2026When the clock changes.
10In containers
podman run --rm -e TZ=Asia/Riyadh registry.access.redhat.com/ubi10/ubi dateSet the zone for one container.
Niets past bij dit filter.
Exitcodes
0 | Done. |
1 | Error. |