mmacas.blogg.se

Change timezone linux terminal
Change timezone linux terminal







change timezone linux terminal change timezone linux terminal

If you are running an older Linux distributionĪnd the timedatectl utility is not present on your system, you can change the timezone by symlinking /etc/localtime to the time zone in the /usr/share/zoneinfo directory. Changing the Time Zone by Creating a Symlink # Mission accomplished! You’ve successfully changed your system’s time zone. To verify the change, invoke the timedatectl command again: timedatectl Local time: Tue 13:55:09 EST Once you identify which time zone is accurate to your location, run the following command as root or sudoįor example, to change the system’s timezone to America/New_York you would type: sudo timedatectl set-timezone America/New_York To view all available time zones, use the timedatectl command or list the files in the /usr/share/zoneinfo directory: timedatectl list-timezones. The time zone naming convention usually uses a “Region/City” format. The system time zone is configured by symlinking the /etc/localtime file to a binary time zone’s identifier in the /usr/share/zoneinfo directory.Īnother way to check the time zone is to view the path the symlink points to using the lsĬommand: ls -l /etc/localtime lrwxrwxrwx 1 root root 27 Dec 3 16:29 /etc/localtime -> /usr/share/zoneinfo/Etc/UTCīefore changing the time zone, you’ll need to find out the long name of the time zone you want to use. The output above shows that the system’s time zone is set to UTC. How To Change Your WordPress Timezone? | WPHub Local time: Tue 16:30:44 UTC









Change timezone linux terminal