Linux Sync Date – Super easy

# Run it once by hand to get it sync'd now:
/usr/sbin/ntpdate 0.us.pool.ntp.org
# Then put it in cron, to run every 30 minutes
cd /etc/cron.d
echo "*/30 * * * * root /usr/sbin/ntpdate 0.us.pool.ntp.org > /var/log/ntpdate.log 2>&1" > ntpdate

One Response to “Linux Sync Date – Super easy”

  1. Erik says:

    Eh, that’s what ntpd (the NTP daemon) is for.

    If required add
    server 0.us.pool.ntp.org
    in /etc/ntp.conf.

    /etc/init.d/ntpd start

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

16,278 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree