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:
root@myserver [~]# date
Wed Aug 27 21:03:57 CDT 2008
2. Now, execute in this format to set the new date and time:
root@myserver [~]# date –set=’Wed Aug 27 22:00:00 CDT 2008′
3. Now, execute “date” again to see if the changes get applied:
root@myserver [~]# date
Wed Aug 27 22:00:00 CDT 2008