2016-05-23 05:11:30 +01:00
|
|
|
# hwclock
|
|
|
|
|
2016-05-25 18:16:02 +01:00
|
|
|
> Used for reading or changing the hardware clock. Usually requires root.
|
2021-09-02 19:33:49 +01:00
|
|
|
> More information: <https://manned.org/hwclock>.
|
2016-05-23 05:11:30 +01: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):
|
|
|
|
|
|
|
|
`hwclock --systohc`
|
|
|
|
|
|
|
|
- Write the current hardware clock time to the software clock:
|
|
|
|
|
|
|
|
`hwclock --hctosys`
|