![]() ![]() Run command timedatectlto verify changes: timedatectl Local time: Sat 07:43:39 WIBĬhanging the Time Zone by Creating a Symlink Once you’ve identified which timezone is accurate for your location, run the following command as the sudo user: sudo timedatectl set-timezone your_timezoneįor example, to change the system timezone to Kolkata local time: sudo timedatectl set-timezone Asia/Kolkata To list all available time zones, you can list files in the directory /usr/share/zoneinfoor use commands timedatectl. Time zone naming conventions usually use the “Region/City” format. 1 root root 23 Feb 21 23:30 /etc/localtime -> /usr/share/zoneinfo/UTCĬhanging Time Zone on Rocky Linux 8.4 and CentOS 8īefore changing the time zone, you must find out the long name for the time zone you want to use. So, another option to check the timezone is to check the path symlink by using the ls command : ls -l /etc/localtime lrwxrwxrwx. The system time zone is configured by connecting /etc/localtimeto the binary timezone identifier in the directory /usr/share/zoneinfo. ”, Run the following command to use the RTC in UTC: timedatectl If you get a warning that says, ” The system is configured to read the RTC time in the local time zone. timedatectlĪs the output below shows, the system timezone is set to UTC: Local time: Sat 21:30:22 UTC ![]() On Rocky Linux 8 and other modern Linux distros, you can use the command timedatectlto display and set the current system time and timezone. You must be logged in as a user with sudo privileges to change the system timezone. ![]() This tutorial explains how to set or change the time zone on Rocky Linux 8.4 and CentOS 8 systems. On the Rocky Linux 8.4 and CentOS 8 operating system, the system timezone is set during installation, but can be easily changed at a later time. For example, the cron daemon uses the system timezone to execute cron jobs and timestamps in the log file are based on the same system timezone. Using the correct time zone is essential for many system-related tasks and processes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |