Time & NTP
Keeping Time in Sync
Accurate time matters for logs, TLS certs, and Kerberos.
| Command | Purpose |
|---|---|
timedatectl | Show/set time, zone, NTP status |
timedatectl set-timezone Asia/Kolkata | Set timezone |
timedatectl set-ntp true | Enable network time sync |
chronyc sources | chrony NTP sources (RHEL) |
date / hwclock | System / hardware clock |
$ timedatectl
Local time: Mon 2025-01-06 10:00:00 IST
System clock synchronized: yes
NTP service: active
Exam tip:chronyd(RHEL) andsystemd-timesyncd(Ubuntu) are the modern NTP daemons -ntpdis legacy.