Sunday, October 4, 2009

how to set system date/time on Linux

To set the system time on Linux, use the date command. For example to set the date/time to October 4, 11:05 pm, do the following:

date 10042305


Note that this retains the current year. To change the year to 2009, use 100423052009

No comments: