1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/htpdate.md

21 lines
418 B
Markdown
Raw Normal View History

2020-10-10 04:36:17 +02:00
# 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}}`
2020-12-04 07:37:44 -05:00
- Perform simulation of synchronization, without any action:
2020-10-10 04:36:17 +02:00
`htpdate -q {{host}}`
2022-07-19 19:45:32 +05:30
- Compensate the systematic clock drift:
2020-10-10 04:36:17 +02:00
`sudo htpdate -x {{host}}`
2020-12-04 07:37:44 -05:00
- Set time immediate after the synchronization:
2020-10-10 04:36:17 +02:00
`sudo htpdate -s {{host}}`