Display current date and date settings
timedatectl
Apply time settings
timedatectl set-time “2020-01-01 01:00:25”
List timezones
timedatectl list-timezones
Set timezone
timedatectl set-timezone “America/New_York”
RHEL location of file with timezone settings
/etc/localtime
Display date
date -u UTC time date +%F -full date date +%D -M/D/Y date +%m-%d-%Y date +%a -Thu date +%A -Thursday date +%b -Jun date +%d- 31 date -d+'30 days' -show the date +30 days from now date -d+'15 days' +%Y-%m-%d
Menu-driven util to set up timezone
tzselect
Install ntp service
yum install chronyd
Display info about sources of chronyd
chronyc sources -v
Display info about system clock performance
chronyc tracking
Location to set up manually time sync servers
/etc/chrony.conf
Check if time is correct and not out of sync with ntp servers
systemctl status chronyd