~]# timedatectl list-timezones | grep -i Asia Asia/Aden You can filter out the time zones you want to check from timedatectl list-timezones command as mentioned below. Example 4: To list out only Asia Time Zones ~]# timedatectl list-timezones Africa/Abidjan You can check all the available time zones by using timedatectl list-timezones command as shown below. +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN Example 3: To List out the available Time Zones You can use -version with timedatectl command to check the installed version details of this tool. Sun 03:00:00 EDT Example 2: To check the version of timedatectl tool Next DST change: DST begins (the clock jumps one hour forward) at ~]# timedatectl Local time: Mon 00:36:36 EST You can current date and time by using below timedatectl command.
We will go through different examples of this command to understand it further.Įxample 1: To check current time and date
Timedatectl is the command to change date and time in RedHat/CentOS7. Sometimes it is very important to have correct date and time in your Linux Server. In this tutorial, I will take you through the different ways to change date and time in Linux (RedHat/CentOS 7).