# timedatectl set-timezone "Asia/Kolkata" To set your local timezone in Linux, we will use the set-timezone switch as shown below. # timedatectl list-timezones | egrep -o "America/N.*"ĥ.
# timedatectl list-timezones | egrep -o "Europe/L.*" To find the local timezone according to your location, run the following command: # timedatectl list-timezones | egrep -o "Asia/B.*"
To view all available timezones, run the command below: # timedatectl list-timezonesĤ. The time on your Linux system is always managed through the timezone set on the system, to view your current timezone, do it as follows: # timedatectlģ. In the screencast above, RTC time is the hardware clock time.Ģ. To display the current time and date on your system, use the timedatectl command from the command line as follows: # timedatectl status
How to Find and Set Local Timezone in Linuxġ. the correct time for logging events and other information on the system and many more.maintain a timely operation of system tasks since most tasks in Linux are controlled by time.It is always a good practice to maintain the correct time on your Linux server or system and it can have the following advantages: In this tutorial, am going to take you through the ways you can manage time on your Linux system by setting the date, time, timezone, and synchronize time with NTP from the terminal using the new timedatectl command. The timedatectl command allows you to query and change the configuration of the system clock and its settings, you can use this command to set or change the current date, time, and timezone or enable automatic system clock synchronization with a remote NTP server. Use timedatectl to Set System Time, Date, and Timezone in Linux The timedatectl command is a new utility for RHEL/CentOS 7/8 and Fedora 30+ based distributions, which comes as a part of the systemd system and service manager, a replacement for old traditional date command used in sysvinit daemon based Linux distributions.