hwclock
Used for reading or changing the hardware clock. Usually requires root.
- 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
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).