mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 06:49:24 +00:00
Update cheatsheets
This commit is contained in:
25
linux/ntpdate
Normal file
25
linux/ntpdate
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ntpdate
|
||||
|
||||
> Synchronize and set the date and time via NTP.
|
||||
> More information: <http://support.ntp.org/documentation>.
|
||||
|
||||
- Synchronize and set date and time:
|
||||
|
||||
`sudo ntpdate {{host}}`
|
||||
|
||||
- Query the host without setting the time:
|
||||
|
||||
`ntpdate -q {{host}}`
|
||||
|
||||
- Use an unprivileged port in case a firewall is blocking privileged ports:
|
||||
|
||||
`sudo ntpdate -u {{host}}`
|
||||
|
||||
- Force time to be stepped using `settimeofday` instead of `slewed`:
|
||||
|
||||
`sudo ntpdate -b {{host}}`
|
||||
Reference in New Issue
Block a user