Dec 102009

How do I change the server date via ssh shell?

It is pretty easy to change your server date and time via shell.

1. First, execute “date” to see the current date and time:

[email protected] [~]# date
Wed Aug 27 21:03:57 CDT 2008

2. Now, execute in this format to set the new date and time:

[email protected] [~]# date –set=’Wed Aug 27 22:00:00 CDT 2008′

3. Now, execute “date” again to see if the changes get applied:

[email protected] [~]# date
Wed Aug 27 22:00:00 CDT 2008

 Posted by at 12:09 am

 Leave a Reply