System Grab Bag

View all TLDR pages from Linux (or from all pages)

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

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.