← 返回命令列表

Linux command

chrony 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Check synchronization status

chronyc tracking

Show NTP sources

chronyc sources

Show detailed source statistics

chronyc sourcestats

Force immediate synchronization

sudo chronyc makestep

Add a new NTP server

chronyc add server [ntp.example.com]

Show all peers

chronyc clients

Check if chrony is synchronized

chronyc waitsync

说明

chrony is a versatile NTP (Network Time Protocol) implementation for synchronizing system clocks. It consists of chronyd (daemon) and chronyc (command-line interface). chrony excels in challenging environments: intermittent network connections, virtual machines with unstable clocks, and systems that sleep or hibernate. It synchronizes faster than ntpd and maintains better accuracy in variable conditions. Configuration is in /etc/chrony.conf (or /etc/chrony/chrony.conf), specifying NTP servers, access controls, and clock adjustments. The daemon can operate as both NTP client and server.

FAQ

What is the chrony command used for?

chrony is a versatile NTP (Network Time Protocol) implementation for synchronizing system clocks. It consists of chronyd (daemon) and chronyc (command-line interface). chrony excels in challenging environments: intermittent network connections, virtual machines with unstable clocks, and systems that sleep or hibernate. It synchronizes faster than ntpd and maintains better accuracy in variable conditions. Configuration is in /etc/chrony.conf (or /etc/chrony/chrony.conf), specifying NTP servers, access controls, and clock adjustments. The daemon can operate as both NTP client and server.

How do I run a basic chrony example?

Run `chronyc tracking` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more chrony examples?

This page includes 7 examples for chrony, plus related commands for nearby Linux tasks.