Wednesday, 27 April 2016

Change Timezone and Time

Generic procedure to change timezone under Linux

Cd to /etc, run:

# cd /etc

Create a symlink to file localtime:

# ln -sf /usr/share/zoneinfo/EST localtime

OR some distro use /usr/share/zoneinfo/dirname/zonefile format:

# ln -sf /usr/share/zoneinfo/EST localtime

OR if you want to set up it to IST (Asia/Calcutta):

# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime

date --set="2016-04-27 13:30 PM"

No comments:

Post a Comment