For some reason I find the manpage for the date command a bit confusing. Here is how you can set the time in a linux box through the command line:
date MMDDhhmmYYYY
where MM is the month, DD the day, hh the hour, mm the minutes and YYYY the year.
The system's hardware clock can be synchronized with this time by executing the following command:
sudo hwclock --utc --systohc
No comments:
Post a Comment