$
Aprender Manual de Linux
pt
XP:0
Missão 92Time-Warden
+220 XP

System Clock, Timezones & Power (timedatectl & shutdown)

Iniciar terminal interativo para esta missão→Sem instalação necessária • Executado no navegador

Conceito e visão geral

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.

Referência de sintaxe de comandos

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

Objetivos de verificação

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

Pronto para concluir a Missão 92?