hwclock
Used for reading or changing 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):
hwclock --systohc
- Write the current hardware clock time to the software clock:
hwclock --hctosys
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.