HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

sntp — A very Simple Network Time Protocol client program. More information: <https://keith.github.io/xcode

Submitted by: @import:tldr-pages··
0
Viewed 0 times
simplecommandverynetworkclitimesntpprotocol
macos

Problem

How to use the sntp command: A very Simple Network Time Protocol client program. More information: <https://keith.github.io/xcode-man-pages/sntp.1>.

Solution

sntp — A very Simple Network Time Protocol client program. More information: <https://keith.github.io/xcode-man-pages/sntp.1>.

Query a specified SNTP server and display the time:
sntp {{pool.ntp.org}}


Synchronize the system clock with a specified SNTP server:
sudo sntp -S {{pool.ntp.org}}


Enable debug logging:
sntp -d {{pool.ntp.org}}

Code Snippets

Query a specified SNTP server and display the time

sntp {{pool.ntp.org}}

Synchronize the system clock with a specified SNTP server

sudo sntp -S {{pool.ntp.org}}

Enable debug logging

sntp -d {{pool.ntp.org}}

Context

tldr-pages: osx/sntp

Revisions (0)

No revisions yet.