Time and Date

Dexter Ang thepoch at mydestiny.net
Sat May 29 17:19:11 UTC 2004


Don Dupy wrote:
> does anyone know a simple way to change the time and date
> on a FC1 machine in command line mode
> I don't have a gui installed
> 
> I don't quite understand the "date" command options
> 
> Thanks
> 
> Don Dupy

date --set "Jul 22 1980 13:00:00"

or something like it. i would have suggested "man date" but, looking 
through it, it probably wouldn't have helped. basically, type "date" and 
see the result. you can pretty much copy the format, changing the values 
you want. or, if you have internet access, ntp isn't blocked by 
firewalls, and you have your timezone correctly set, as root type 
"/usr/sbin/ntpdate time.nist.gov". this will automatically set the 
correct time on your machine. =)

hope this helps.

dex





More information about the fedora-list mailing list