TheGerman

How to change time-zone settings from the command line

Feb 6th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # sudo dpkg-reconfigure tzdata
  2. -- or --
  3. # sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
  4. # sudo cat /etc/sysconfig/clock
  5. ZONE="America/New_York"
  6. UTC=true
  7. # sudo reboot
  8.  
  9. (also check
  10. 1) https://askubuntu.com/questions/3375/how-to-change-time-zone-settings-from-the-command-line
  11. 2) https://www.digitalocean.com/community/tutorials/how-to-set-up-timezone-and-ntp-synchronization-on-ubuntu-14-04-quickstart
  12. )
Add Comment
Please, Sign In to add comment