by
0
5
3,076
10
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 4556th place
Created
Modified Sep 30, 2013
No tags for this snippet yet.
Architecturex86_64
Languagebash
LicenseMIT_X11
Linux VersionLinuxUbuntu
OSLinux

BASH script to synchronize with NTP server

This is a simple script (can be safely placed in a cron) to sync your machine with the default NTP server
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/11202/BASH-script-to-synchronize-with-NTP-serv?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
############## service ntpd stop ntpdate 156.54.18.6 // replace 156.54.18.6 with correct server IP address ntpdate 156.54.18.6 ntpdate 156.54.18.6 ntpdate 156.54.18.6 service ntpd start chkconfig ntpd on ##############
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus