LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2014, 04:18 AM   #1
phyogyi
LQ Newbie
 
Registered: Apr 2008
Location: Singapore
Distribution: CentOS, RHEL
Posts: 18

Rep: Reputation: 0
How to change Location from Command line?


Dear all,

I installed Centos 6.4 on virtualbox for testing and studying. After installed I noticed that the location is not correct. I mean my current location is Singapore, but in the machine, the location is Boston. I can change after login from GUI. What i want to know is can i change it from cli?
I attached the picture, pls take a look.
https://db.tt/mQEQci2Z

Thanks.
 
Old 01-28-2014, 04:41 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,404

Rep: Reputation: Disabled
What you're looking to change is your Time Zone.

You could try running tzselect, it's an interactive command-line application. I believe it links or copies the appropriate time zone definition file (a binary file) from /usr/share/zoneinfo/ to /etc/localtime.
 
1 members found this post helpful.
Old 01-28-2014, 07:07 AM   #3
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
You can soft link as below

ln -sf /usr/share/zoneinfo/Asia/Singapore /etc/localtime
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
change background via command line verbose Linux - General 10 07-19-2012 11:31 AM
Change Colors on Command Line rtrahan Linux - Newbie 3 02-15-2009 11:52 AM
change the time from the command line juanb Linux - Newbie 3 10-31-2007 03:11 AM
change ip by command line noorudin Linux - Networking 8 09-07-2006 07:13 PM
how do I change the command line resulution? sunpascal Linux - Software 9 03-11-2006 11:20 AM


All times are GMT -5. The time now is 08:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration