الفلاتر
طريقة البحث
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • "كلمتان" تجد العبارة بالضبط.
  • --name أو -x تجد خيارًا.
  • #كلمة تبحث داخل الأوامر فقط.
  • @grep تجد الدروس والمعامل التي تستخدم grep.
  • الفلاتر: cat:network · in:labs · level:rhcsa · ch:8 · root:yes. ضع ! قبل كلمة لاستبعادها. OR بين الكلمات تعني إحداها.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث

tzselect

Find the name of a time zone by answering questions (it does not change the system).

المستوى
لينكس اليومي
المجموعة
الوقت
يحتاج root
لا
الحزمة
glibc-common

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

ماذا يفعل

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.

طريقة الكتابة

tzselect [-c COORD] [-n LIMIT]

الخيارات 4

الأكثر استخدامًا

-c COORD
Start from coordinates like +2430+04643 (Riyadh).
-n LIMIT
With -c: show this many closest zones.
--help
Show help.
--version
Show the version.

أمثلة 10

$ مستخدم عادي# بصلاحية root (أو مع sudo)

  1. 1Find a zone interactively

    tzselect

    Choose continent, country, region; it prints the name.

  2. 2Then set it

    timedatectl set-timezone Asia/Riyadh

    tzselect only shows the name.

  3. 3By coordinates

    tzselect -c +2430+04643 -n 3

    The 3 zones closest to Riyadh.

  4. 4Alternative: list and grep

    timedatectl list-timezones | grep -i cairo
    Africa/Cairo

    Faster when you know the city.

  5. 5Test a zone first

    TZ='Africa/Cairo' date

    Shows the local time there.

  6. 6Use in a user profile

    echo "TZ='Europe/Amsterdam'; export TZ" >> ~/.bash_profile

    Only this user sees that zone.

  7. 7Zone files

    ls /usr/share/zoneinfo/Asia | head

    Every zone is a file.

  8. 8Current zone

    timedatectl show -p Timezone --value

    The system zone.

  9. 9Check daylight saving changes

    zdump -v Europe/Amsterdam | grep 2026

    When the clock changes.

  10. 10In containers

    podman run --rm -e TZ=Asia/Riyadh registry.access.redhat.com/ubi10/ubi date

    Set the zone for one container.

رموز الخروج

0 :: Done. 1 :: Error.

الدليل الكامل

هذه الصفحة تشرح الأمر بكلمات بسيطة. الدليل الأصلي فيه كل التفاصيل.

في الطرفية: man 8 tzselect