LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-23-2006, 06:31 AM   #1
rust8y
Member
 
Registered: May 2006
Posts: 100

Rep: Reputation: 15
Changing time on linux


What is the command to change the time?
 
Old 07-23-2006, 06:42 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
I can think of 3 ways to do this - using hwclock, date or ntpdate. Do you want to automatically update your system clock when you shut down your system, synchronise with a clock on another system or manually set the time?
 
Old 07-23-2006, 06:52 AM   #3
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
has he even tried right-clicking on the clock yet?
 
Old 07-23-2006, 06:54 AM   #4
rust8y
Member
 
Registered: May 2006
Posts: 100

Original Poster
Rep: Reputation: 15
I just want to manually change the clock time. Thanks.
 
Old 07-23-2006, 07:04 AM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
You can use the date command, date --set=STRING where string is the date/time you want to change it to. man date will give you more info, but remember to check that your shutdown scripts use something like hwclock to set the hardware clock to the system time or when you re-start your system the value will be overwritten with the hardware clock time.
 
  


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
LXer: Linux down time may be due to missing documentation or changing ... LXer Syndicated Linux News 2 06-13-2006 03:01 PM
Changing the time... matsko Linux - Software 3 04-03-2006 02:11 AM
Changing time ethics Fedora 9 08-02-2005 02:08 PM
Time keeps changing? threedguy Linux - Software 5 10-08-2003 10:05 PM
Time keeps changing eternity1700 Linux - General 2 02-17-2003 01:06 AM


All times are GMT -5. The time now is 05:56 PM.

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