Intermediate LevelLinux Commands & SysAdmin
How does chrony / systemd-timesyncd synchronize system clocks using NTP?
❓ Interview Prompt: Explain clock synchronization, Network Time Protocol (NTP), chrony daemon (chronyc tracking), systemd-timesyncd, and drift correction.
System clock synchronization is critical for distributed databases, TLS certificate validation, and kerberos authentication:
Tools:
•
'chrony' (Recommended): Modern NTP implementation optimized for virtual machines and intermittent connections. Provides fast clock drift correction.
•
'chronyc tracking': Displays clock offset, stratum, and frequency error bounds.
Code Implementation Example
bash
# Inspect active clock synchronization status via chrony
chronyc tracking
# List active NTP time servers and offsets
chronyc sources -v
# Check systemd time synchronization status
timdatectl status💡Checking NTP time synchronization tracking and server sources via chronyc.
🎯 Interview Key Takeaway
Use chrony for precise system clock synchronization required by distributed databases and authentication services.
#chrony#NTP#Time Sync#Intermediate
Back to all Linux Commands & SysAdmin Questions→