Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-14-2002, 03:32 AM   #1
LQ Newbie
Registered: Oct 2001
Distribution: SuSE
Posts: 9

Rep: Reputation: 0
System time

This is probably a really stupid question, but how do you set the system date and time on Linux. I've tried:

clock --set --date="14/01/2002 08:24:00"


hwclock --set --date="14/01/2002 08:24:00"

both as root and whilst the commands executed without reporting an error, they don't appear to have done anything. If I use clock and hwclock without arguments they both report:

Sat Feb 1 08:29:39 2003 -0.673500 seconds

and date reports

Sun Oct 6 09:31:35 BST 2002

If anybody could help it would be much appreciated. Thanks.

Old 01-14-2002, 05:09 AM   #2
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
This question was answered just a while ago. Try searching for answers before you ask.
Old 01-14-2002, 07:00 AM   #3
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
searching? wassat?

an easier way tho is to use rdate:

rdate -s

which will get time from an atomic clock and set it automatically


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
how to set and sync system time with time server?? servnov Linux - Newbie 6 12-03-2013 08:55 PM
system crashes time to time Artik Debian 2 12-02-2005 08:19 AM
How to syncronize my system time by public time server? hakansun Linux - Networking 1 09-10-2004 06:10 AM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 04:25 PM
Updating System time from some Inet time server Steave Linux - General 6 12-21-2001 03:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 AM.

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