Set time at command line in Linux

This works for all Linux flavors as far as I know:

The date command is used to set the system clock using the switch -s and the format MMDDhhmmYYYY (where MM=month, DD=day, hh=24-hour hour, mm=minute, YYYY=year)

The following example sets the date to January 5th 2007, 1:15 PM:

# date -s 010513152007

Posted under Linux

This post was written by Content Curator on March 9, 2007

Tags: , , , , , , , , , , , , ,

Comments are closed.

More Articles: