Linux - Changing the system time and hostname
Linux Systems offer an X Windows interface which can make changing system settings and configuration pretty straight forward, but what if you remotely log in via a Secure Shell (SSH) session using a tool such as putty?
Here is how to change the system date and time and the hostname from the command line.
Changing The Date & Time in Linux
The date command can be used by root to change the system date and time.