$
학습 Linux 안내서
ko
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?