Configuring Time Service
Nov 18, 2025
Managing Linux Time
hwclockused to set hardware time and synchronizehwclock --systohchwclock --hctosys
datetimedatectlused to manage time and time zone configuration
Using timedatectl
timedatectl statusshows all current time propertiestimedatectl set-timechanges timetimedatectl set-timezonechanges timezonetimedatectl set-ntpenables or disables NTP time synchronization- An NTP service is used to synchronize time using NTP
- RHEL 10 uses
chrony(cronyd.service)
- RHEL 10 uses
Managing NTP Client
- /etc/chrony.conf
pool 2.rhel.pool.ntp.org iburstconfigures a pool of NTP serversserver myserver.example.comconfigures a single NTP server- User
iburstto permit fast synchronization
Lab Exercise
- Configure your system to synchronize time with the servers in pool.ntp.org
- Configure your local NTP process to advertise time services as a stratum - server
Solution
- add/modify
/etc/chrony.confto includepool pool.ntp.org iburst - add/modify
/etc/chrony.confto includelocal stratum 10
systemctl restart chronyd
chronyc sources
- Clint Jordan