polewni.blogg.se

How to change timezone linux
How to change timezone linux




how to change timezone linux

Now, verify timezone again using timedatectl command: timedatectl Sudo timedatectl set-timezone America/New_York

how to change timezone linux

Take the long name of timezone for your location, run the following command as root or user with sudo privileges. It will show output like below: Africa/Abidjan To get the list of all available timezones run below command: timedatectl list-timezones

  • /etc/localtime – This is a symlink to the file localtime located in /usr/share/zoneinfo/ directory.Īt first, you should know long name for timezone for which you want to set.
  • how to change timezone linux

    For example, the file /usr/share/zoneinfo/America/New_York represents time zone for New York. /usr/share/zoneinfo/ – Timezone name wise files are stored in this directory.You can check the symbolic link using the following command: ls -l /etc/localtime lrwxrwxrwx 1 root root 01 May 21 20:21 /etc/localtime -> /usr/share/zoneinfo/UTC Timezone Config Files of Ubuntu # The /etc/localtime is a link to the original timezone file.






    How to change timezone linux