tldr/pages/linux/htpdate.md

21 lines
420 B
Markdown
Raw Permalink 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}}`
- Compensate the systematisch clock drift:
`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}}`