How to change the system time in Unix based systems

Published in Devops on Feb 15, 2016

You can check the Unix system date/time with this command

date

To update it to the correct time, replacing HH with the hours (24 hour), MM with minutes and SS with the seconds


date +%T -s "HH:MM:SS"