• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 6 : How to force a NTP sync with the NTP server(s)

by admin

This post briefly outlines how one can force a ntp (Network Time Protocol) sync with the ntp servers defined in the /etc/ntp.conf configuration file. This will not work if there are no ntp servers defined in the /etc/ntp.conf, this can be verified using :

# grep ^server /etc/ntp.conf

This document is useful when the date gets reset e.g. by a hardware maintenance such as a motherboard replacement.

Steps to force NTP sync

1. Stop the ntpd service :

# service ntpd stop

2. Force an update :

# ntpd -gq

-g – requests an update irrespective of the time offset
-q – requests the daemon to quit after updating the date from the ntp server.

3. restart the ntpd service :

# service ntpd start

Filed Under: Linux

Some more articles you might also be interested in …

  1. “docker inspect” Command Examples
  2. asar – A file archiver for the Electron platform (Command Examples)
  3. “uname” Command Examples to Check UNIX/Linux Version
  4. LVM Configuration : Physical Volume (PV) Operations/Utilities
  5. distccd: Server daemon for the distcc distributed compiler
  6. firejail: command not found
  7. toilet Command Examples in Linux
  8. mesg Command Examples in Linux
  9. ceph: command not found
  10. Linux “rm” Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright