Files
cheatsheet-tldr/tldr/linux/hwclock
2025-03-29 00:18:23 +00:00

22 lines
512 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:
`hwclock`
- Write the current software clock time to the hardware clock (sometimes used during system setup):
`hwclock {{[-w|--systohc]}}`
- Write the current hardware clock time to the software clock:
`hwclock {{[-s|--hctosys]}}`