How To Set Clock In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. To set the clock in Linux, open a terminal window and type the following command:
sudo date -s “12/25/2018 18:30:00”
2. To check that the time has been set correctly, type the following command:
date
3. To set the hardware clock to match the system clock, type the following command:
sudo hwclock –systohc
4. To check that the hardware clock has been set correctly, type the following command:
sudo hwclock –show