2016-05-23 00:11:30 -04:00
|
|
|
# hwclock
|
|
|
|
|
2024-02-14 17:25:13 -03:00
|
|
|
> Read or change the hardware clock. Usually requires root.
|
2021-09-02 15:33:49 -03:00
|
|
|
> More information: <https://manned.org/hwclock>.
|
2016-05-23 00:11:30 -04:00
|
|
|
|
|
|
|
- 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-03-28 16:06:49 +02:00
|
|
|
`hwclock {{[-w|--systohc]}}`
|
2016-05-23 00:11:30 -04:00
|
|
|
|
|
|
|
- Write the current hardware clock time to the software clock:
|
|
|
|
|
2025-03-28 16:06:49 +02:00
|
|
|
`hwclock {{[-s|--hctosys]}}`
|