Changing date/time in linux

I was working with some legacy system and it doesn’t have ntpd to keep the time accurate for me. I had to change the system time manually. Imagine I have to do it for day light saving as well.

system time can be changed easily using the following syntax:

date MMDDHHMMYY

hardware clock can then be sync with the system time using:

hwclock –systohc

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Sitecritic.net Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.