How to change timezone in linux

Its very simple to change the server timezone. All server timezones are located in ”

"/usr/share/zoneinfo"

And the server will take the time zone from the file "/etc/localtime". This file is just a symlink to
/usr/share/zoneinfo.

Suppose if we need to change the server time to EST, then follow the below steps. 

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/EST /etc/localtime
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s