Created
December 30, 2014 20:40
-
-
Save avegancafe/ee90614db4ad67248009 to your computer and use it in GitHub Desktop.
A bash script for updating the time in Linux using ntpdate
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 | |
| # echo "Hello, world!" | |
| sudo service ntp stop | |
| echo "Updating time..." | |
| sudo ntpdate -s time.nist.gov | |
| sudo service ntp start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment