mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
527 B
Plaintext
22 lines
527 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# hwclock
|
|
|
|
> Read or change the hardware clock. Usually requires root.
|
|
> More information: <https://manned.org/hwclock>.
|
|
|
|
- Display the current time as reported by the hardware clock:
|
|
|
|
`sudo hwclock`
|
|
|
|
- Write the current software clock time to the hardware clock (sometimes used during system setup):
|
|
|
|
`sudo hwclock {{[-w|--systohc]}}`
|
|
|
|
- Write the current hardware clock time to the software clock:
|
|
|
|
`sudo hwclock {{[-s|--hctosys]}}`
|