This is useful if the Linux server time and/or date is wrong, and you need to set it to new values from the shell prompt.
You must login as root user to use date command.
You must login as root user to use date command.
root@vijay~]# date -s "2 OCT 2006 18:00:00"
root@vijay~]# date --set="2 OCT 2006 18:00:00"