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
21 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
Great post happy to see this. I thought this was a pretty interesting read when it comes to this topic Information. Thanks..
ReplyDeleteArtificial Intelligence Course
Nice Post thank you very much for sharing such a useful information and will definitely saved and revisit your site and i have bookmarked to check out new things frm your post.
ReplyDeleteData Science Course
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
Informative Post. The information you have posted is very useful and sites you have referred was good. Thanks for sharing.
ReplyDeleteData Science Course with Placement
Excellent effort to make this blog more wonderful and informative. The information shared was very useful.
ReplyDeleteCloud Computing Course Fees in Bangalore
Actually I read it yesterday but I had some ideas about it and today I wanted to read it again because it is so well written.
ReplyDeleteData Scientist Course in Jaipur
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
You have done excellent job Thanks a lot and I enjoyed your blog. Great Post.
ReplyDeleteEthical Hacking Course in Hyderabad
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
Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. keep up the good work.
ReplyDeleteMlops Training
Thanks for such a great post and the review, I am totally impressed! Keep stuff like this coming.
ReplyDeleteMlops Course
Really nice and amazing post. I was looking for this kind of information, Keep posting. Thanks for sharing.
ReplyDeleteData Science Courses in Bangalore
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
ReplyDeleteI want to thank you for your efforts in writing this article. The information provided was very useful.
Data Science Certification Bangalore
Thank you for sharing this wonderful blog, I read that Post and got it fine and informative. Please share more like that...
ReplyDeleteBusiness Analytics Course in Amritsar