1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 23:42:07 +02:00
tldr/pages/linux/htpdate.md
2022-07-19 11:15:32 -03:00

20 lines
418 B
Markdown

# htpdate
> Synchronize local date and time via HTTP headers from web servers.
> More information: <http://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}}`