Method 1: Creating link file to corresponding Timezone
# cd /etc
# rm localtime //delete the existing localtime file
Check the available time zones in US
# ls /usr/share/zoneinfo/US/
Alaska Arizona Eastern Hawaii Michigan Pacific
Aleutian Central East-Indiana Indiana-Starke Mountain Samoa
Note: For other country timezones, browse the /usr/share/zoneinfo directory
Now we can change the time zone using below step
# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime
Now check the time
#date
# date
Mon Aug 17 23:10:14 IST 2013
But if you are doing any patching then after patching this Time zone will get changed. So this method is not perfect one.
Method 2: Change TimeZone Using /etc/timezone File
# vi /etc/timezone
America/Los_Angeles
then export the TZ variable
$ export TZ=America/Los_Angeles
$ date
Method 3: Command line tools.
Using below interactive method also we can change the Time zone
Ubuntu: dpkg-reconfigure tzdata
Redhat: redhat-config-date
CentOS/Fedora: system-config-date
FreeBSD/Slackware: tzselect
10 Comments
As for me, I thought, that the process will be easier and I will not need to type any codes. Maybe, I will ask my friend for help.
ReplyDeleteYou have done excellent job Thanks a lot and I enjoyed your blog. Great Post.
ReplyDeleteData Science Certification in Hyderabad
Thanks Your post is so cool and this is an extraordinary moving article and If it's not too much trouble share more like that.
ReplyDeleteDigital Marketing Course in Hyderabad
You have done a great job and will definitely dig it and personally recommend to my friends. Thank You.
ReplyDeleteData Science Online Training
Very good message. I stumbled across your blog and wanted to say that I really enjoyed reading your articles. Anyway, I will subscribe to your feed and hope you post again soon.
ReplyDeleteData Scientist Course in India
Very good article and liked reading your post, very pleasant to share, I want to tweet this to my followers. Thank you!.
ReplyDeleteBest Digital Marketing Institute in Hyderabad
A good blog always contains new and exciting information and as I read it I felt that this blog really has all of these qualities that make a blog.
ReplyDeleteData Science Institutes in Bangalore
I really enjoyed reading this post and keep up the good work and let me know when you can post more articles or where I can find out more on the topic.
ReplyDeleteData Science Online Course
I read your excellent blog post. It's a great job. I enjoyed reading your post for the first time, thank you.
ReplyDeleteData Science Institutes in Bangalore
This is definitely one of my favorite blogs. Every post published did impress me.
ReplyDeleteData Science Course in Indore