|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
change date ?
How can I change my date and time in linux ?
I know it's with the date command I've read the man pages but can't seem to figure out how to do it |
|
#2
|
|||
|
|||
|
date -s '25.03.2003 12:00:10'
if you want to set your cmos clock too, start "hwclock --systohc" after this.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
||||
|
||||
|
If you have an internet connection, you could also use an NTP time server.
As root, enter the command: ntpdate tick.usno.navy.mil A couple other time servers are: tock.usno.navy.mil chime1.surfnet.nl ntp.univ-lyon1.fr ntps1-0.cs.tu-berlin.de ntps1-0.uni-erlangen.de time.zyfer.com Actually, I've only tried USNO and Zyfer, but at least the others are more local to you, for what that's worth. There's also an rdate command that connects to a timserver (port 37) TCP server. Of course, you will need to be root. I also found the other day that Red Hat wouldn't let me run rdate by telneting in and su'ing to root, but rather I had to do it from the console. Sorry, I don't have a list of those servers handy. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > change date ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|