I need to change my time to singapore time.
I read in there documentation that i have t edit the clock file inside: /etc/sysconfig/
Documenation: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html
I did cd /etc/sysconfig
and i get No Such File Directory
I also did ls /etc/
there really isn't any sysconfig folder.
I did find a timezone
File so i tried
sudo nano /etc/timezone
The file only says ETC/UTC
How do i change the timezone??
If you cannot find /etc/sysconfig/clock
, the it is probably the case that you are on a disto that doesn't use it. For at least Ubuntu 15-17 and RHEL/CentOS 7, you can use the timedatectl
utility.
timedatectl
timedatectl list-timezones
sudo timedatectl set-timezone <timezone>
This will take care of altering the /etc/localtime
symlink.
References: RHEL Guide, Ubuntu timedatectl(1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With