Set Time and Date on Linux using Command Line (CLI)

First lets look at the date. Issue:date at the CLI.

You should get a response like:
Fri Feb 15 11:36:02 CST 2008

If the time zone is off, type timeconfig and set it.

If the clock is off type: date -s 11:36:00
the -s means set then replace 11:36:00 with the respective time.

If the date is off, issue: date -s "02/15/2008" replacing the 02/15/2008 with the respective date.

Once you’ve changed everything to the way it needs to be, issue the command date again and verify.

Published
Categorized as Linux

Leave a comment

Your email address will not be published. Required fields are marked *