ntpq
Query the Network Time Protocol (NTP) daemon. More information: <https://www.eecis.udel.edu/~mills/ntp/html/ntpq.html>.
Install
- All systems
-
curl cmd.cat/ntpq.sh
- Debian
-
apt-get install ntp - Ubuntu
-
apt-get install ntp - Arch Linux
-
pacman -S ntp - Kali Linux
-
apt-get install ntp - CentOS
-
yum install ntp - Fedora
-
dnf install ntp - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install ntp - OS X
-
brew install ntp - Raspbian
-
apt-get install ntp
Query the Network Time Protocol (NTP) daemon. More information: <https://www.eecis.udel.edu/~mills/ntp/html/ntpq.html>.
-
Start `ntpq` in interactive mode:
ntpq --interactive -
Print a list of NTP peers:
ntpq --peers -
Print a list of NTP peers without resolving hostnames from IP addresses:
ntpq --numeric --peers -
Use `ntpq` in debugging mode:
ntpq --debug-level -
Print NTP system variables values:
ntpq --command=rv
© tl;dr; authors and contributors