Created
February 8, 2019 17:03
-
-
Save hoangdh/0cc46cb8c10122a6218b6e78ac8c67cf to your computer and use it in GitHub Desktop.
Automatic update time/date on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
timedatectl set-timezone Asia/Ho_Chi_Minh | |
yum install ntp -y | |
ntpdate pool.ntp.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment