1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-07-26 04:21:34 +02:00
Files
wiki/wiki/linux/ntp.md
tiyn c03daea525 Corrected various typographic errors
- substituted en-dash for hyphen where needed
- renamed files to avoid confusion due to identical name
- added links
- fixed capitalization
- fixed line breaks
2026-07-02 09:12:29 +02:00

811 B
Raw Blame History

NTP

NTP short for Network Time Protocol

  • is the most common method to synchronize the software clock of a Linux system.

Setup

NTP can be installed on most distributions by installing the ntp package.

Usage

The following section describes the usage of the NTP package.

Synchronize Time once

For one time synchronization of the time and date the ntpdate command can be used. The following command is an example for a one time sync. Note that the server has to be changed for different time zones. In this case a German time-server is used.

ntpdate ptbtime1.ptb.de

Alternatively the time can be displayed only without changing the systems time by using the -q flag.

ntpdate -q ptbtime1.ptb.de