Click to See Complete Forum and Search --> : Just a quick one, setting time
Mike B Best
11-23-2001, 03:32 PM
This is very bad, I set the time wrong when I installed RH7.1, now I have half the clocks wrong. I have no idea how to get it GMT, it sounds so simple but I can't find it anywhere.
Sorry to bother everyone.
Cheers
Mike Best :confused:
dgcartel
11-23-2001, 03:39 PM
try this at console
date -s (current time here)
date -s (current date) e.g. 11/23/01
good luck
Mike B Best
11-23-2001, 03:58 PM
That would be it thanks,
Is it just experience or is there a way of finding the commands.
Just so I don't have to bother people with the trivial. :)
PuterFreaK
11-23-2001, 05:54 PM
Originally posted by Mike B Best:
<STRONG>Is it just experience or is there a way of finding the commands.</STRONG>
I assume you could press 'tab' at a prompt for a list of them and then type "man command" or "whatis command" but I assume thats not really practical :D .
Syngin
11-23-2001, 06:34 PM
Hmm, doesn't that just set your OS clock though and not your hardware clock? The system I use at work is RH 6.1 and its got a little proggy /sbin/hwclock/ for setting the hardware clock.
Not sure if this has changed in the newer releases.
Also, you may want to check out ntpd. You set it up in cron and it syncs your system every so often with dedicated time servers on the net.
Hope this helps.
error27
11-24-2001, 05:37 AM
Here is how I would try find something like that.
"man -k time"
that prints up far too much stuff.
"man -k time | grep set"
ok. that prints out basically the stuff i'm interested in.
You could use "appros" instead of "man -k" but I think the first way is harder.
Mike B Best
11-24-2001, 04:15 PM
Thanks all,
That "man -k" seems quite handy.
Syngin: I think that RH7.1 sets the hardware clock to whatever the system is when it shuts down, well it looked like that anyway :D .