How can I add or change my NTP server using the command line?

Updated -

The Network Time Protocol (NTP) servers are declared in the following file:

/etc/ntp.conf

This file must be edited by the root user or a user with root's permissions.

Look for the following lines within this file:

# --- OUR TIMESERVERS -----
server clock.corp.redhat.com

Change the server line to the fully qualified domain nam...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content