neovur.blogg.se

Change timezone linux server
Change timezone linux server











change timezone linux server

NOTE: There's also this option in Ubuntu 14.04 and higher with a single command (source: Ask Ubuntu - setting timezone from terminal): $ sudo timedatectl set-timezone Etc/GMT-6

change timezone linux server

To change the timezone on either of these distros you can use this command: $ sudo dpkg-reconfigure tzdata Now date shows the different timezone: $ date -u

change timezone linux server

$ sudo ln -s /usr/share/zoneinfo/Etc/GMT+6 /etc/localtime I would recommend linking to it rather than copying however. $ ls /usr/share/zoneinfo/Īfrica/ CET Etc/ Hongkong Kwajalein Pacific/ ROK zone.tabĪmerica/ Chile/ Europe/ HST Libya Poland Singapore ZuluĪntarctica/ CST6CDT GB Iceland MET Portugal TurkeyĪrctic/ Cuba GB-Eire Indian/ Mexico/ posix/ UCTĪsia/ EET GMT Iran MST posixrules UniversalĪtlantic/ Egypt GMT0 iso3166.tab MST7MDT PRC US/Īustralia/ Eire GMT-0 Israel Navajo PST8PDT UTCĬanada/ EST5EDT Greenwich Japan NZ-CHAT ROC W-SU NOTE: If you're looking for a distro-agnostic solution, this also works on Debian, though there are simpler approaches below if you only need to be concerned with Debian machines. If you're using a distribution such as Red Hat then your approach of copying the file would be mostly acceptable. Take a look at this blog post titled: How To: 2 Methods To Change TimeZone in Linux.













Change timezone linux server