2025-03-14 21:59:59 -06:00
|
|
|
# hwclock
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> Read or change the hardware clock.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/hwclock>.
|
|
|
|
|
|
|
|
|
|
- Display the current time as reported by the hardware clock:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo hwclock`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Write the current software clock time to the hardware clock (sometimes used during system setup):
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo hwclock {{[-w|--systohc]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Write the current hardware clock time to the software clock:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`sudo hwclock {{[-s|--hctosys]}}`
|