tracknsa.blogg.se

Change timezone linux server
Change timezone linux server









Sun 03:00:00 EDT Changing the Timezone by Creating a Symlink Next DST change: DST begins (the clock jumps one hour forward) at Run the timedatectl command to verify the changes: Once you identify which time zone is accurate to your location, run the following command as sudo user: sudo timedatectl set-timezone your_time_zoneįor example, to change the system’s timezone to America/Toronto: sudo timedatectl set-timezone America/Toronto To list all available time zones, you can either list the files in the /usr/share/zoneinfo directory or use the timedatectl command. The timezone naming convention usually uses a “Region/City” format. usr/share/zoneinfo/Etc/UTCīefore changing the timezone, you’ll need to find out the long name for the timezone you want to use. So, another option to check the timezone is to show the path the symlink points to using the ls command ls -l /etc/localtime lrwxrwxrwx. The system timezone is configured by symlinking /etc/localtime to a binary timezone identifier in the /usr/share/zoneinfo directory. The output below shows that the system’s timezone is set to UTC: Local time: Wed 22:43:42 UTC











Change timezone linux server