Files
cheatsheet-tldr/tldr/linux/htpdate
2024-10-13 00:18:36 +00:00

26 lines
511 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# htpdate
> Synchronize local date and time via HTTP headers from web servers.
> More information: <https://www.vervest.org/htp/>.
- Synchronize date and time:
`sudo htpdate {{host}}`
- Perform simulation of synchronization, without any action:
`htpdate -q {{host}}`
- Compensate the systematic clock drift:
`sudo htpdate -x {{host}}`
- Set time immediate after the synchronization:
`sudo htpdate -s {{host}}`