Change the time and date

Res res at ausics.net
Fri Dec 29 09:44:54 UTC 2006


On Fri, 29 Dec 2006, Mike McCarty wrote:

> Tim wrote:
>> eng.waleed:
>> 
>>>> how  can I set the time and the date on FC3 from command line
>> 
>> 
>> Brad Bonkoski: 
>>> man date
>> 
>> 
>> An alternative is ntpdate.  That'll set your clock according to a
>
> I use this little script (as root)
>
> rdate -p -s time.nist.gov
> /sbin/hwclock --systohc


and maybe add to  /etc/crontab

0 * * * * root (rdate -p -s -u 192.43.244.18 ; hwclock --systohc) > /dev/null 2>&1


-- 
Cheers
Res

"Just a world that we all must share, it's not enough just to stand and
stare, is it only a dream that there'll be no more turning away" - Floyd





More information about the fedora-list mailing list