2025-03-14 21:59:59 -06:00
|
|
|
# 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):
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`hwclock {{[-w|--systohc]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Write the current hardware clock time to the software clock:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`hwclock {{[-s|--hctosys]}}`
|