← 返回命令列表

Linux command

ntp-ctl 命令

文本

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

常用示例

Show NTP status

ntpctl -s status

Show peers

ntpctl -s peers

Show all information

ntpctl -s all

Show sensors

ntpctl -s sensors

说明

ntpctl controls OpenNTPD. Queries time synchronization status. The tool monitors NTP daemon state. Read-only control interface.

参数

-s _TYPE_
Show information type.
status
Display sync status.
peers
Display configured peers.
sensors
Display time sensors.
all
Display all information.
--help
Display help information.

FAQ

What is the ntp-ctl command used for?

ntpctl controls OpenNTPD. Queries time synchronization status. The tool monitors NTP daemon state. Read-only control interface.

How do I run a basic ntp-ctl example?

Run `ntpctl -s status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -s _TYPE_ do in ntp-ctl?

Show information type.