tldr/pages/linux/htpdate.md

21 lines
418 B
Markdown
Raw Normal View History

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