$
学ぶ Linux ハンドブック
ja
XP:0
クエスト 92Time-Warden
+220 XP

System Clock, Timezones & Power (timedatectl & shutdown)

このクエストの対話型ターミナルを起動する→インストール不要 • ブラウザ上で完全動作

概念と概要

Accurate system time is critical for log auditing, authentication protocols (Kerberos, TLS certificates), and scheduled database backups.

- The timedatectl utility queries and changes the system clock and its timezone.
- View the current time settings, RTC, and active timezone with timedatectl status (or simply timedatectl).
- Set the system timezone using superuser rights: sudo timedatectl set-timezone UTC.
- When shutting down or restarting production servers, use the shutdown command with safety delays and broadcast notices: sudo shutdown -r now (reboots immediately) or sudo shutdown -c (cancels scheduled shutdowns).

Check your server clock and timezone by running timedatectl status. Set the system timezone to UTC using sudo timedatectl set-timezone UTC. Then initiate a safe immediate reboot command with sudo shutdown -r now.

コマンド構文リファレンス

Command / SyntaxDescription
timedatectl statusShow current time and timezone settings
sudo timedatectl set-timezone UTCSet system timezone to UTC
sudo shutdown -r nowReboot system safely immediately

検証目標

  • ○
    Inspect time status with "timedatectl status"
  • ○
    Set timezone to UTC with "sudo timedatectl set-timezone UTC"
  • ○
    Initiate immediate reboot with "sudo shutdown -r now"

クエスト完了への準備はできましたか? 92?