How To Update Time 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 update the time manually in Linux, open the Terminal and enter the following command:
sudo date —set=”MON DD YYYY HH:
MM:SS“
Replace MON with a three–letter abbreviation for the month, DD with the day of the month, YYYY with a four–digit year, HH with a two–digit hour, MM with a two–digit minute, and SS with a two–digit second.
2. Alternatively, you can run the following command to synchronize your system‘s time with an online server: sudo ntpdate pool.ntp.org This will use the pool.ntp.org server to update your system‘s clock.