Sunday, April 17, 2005

The date command - setting the date

date MMDDHHmmYYYY

example:

root# date 041511242005 <------ command entered
Fri April 15 11:24:00 EDT 2005 <------- output


This syncs the hardware and software clocks:

hwclock --set --date="`date '+%m/%d/%y %H:%M:%S'`"

No comments: