Friday, July 20, 2007

Setting system clock and date

To set system clock and date using command, date command can be used.
This is how to do it:

-> date mmddttttyyyy.ss where;
mm - month
dd - day
tttt - time in hours and minutes
yyyy - year
ss - seconds

For example, to set the current date to 17 July 2007, 11:15 a.m., this command below can be used:

-> date 071711152007

To see the current date, the date command without argument can be used.

-> date

No comments:

Post a Comment