commands.sh

hwclock

linux

Read or change the hardware clock.

More info →

Options (2)

-w, --systohcboolean

Write the current software clock time to the hardware clock (sometimes used during system setup)

Example: sudo hwclock {{[-w|--systohc]}}
-s, --hctosysboolean

Write the current hardware clock time to the software clock

Example: sudo hwclock {{[-s|--hctosys]}}

Examples (3)

Display the current time as reported by the hardware clock

Write the current software clock time to the hardware clock (sometimes used during system setup)

sudo hwclock [-w|--systohc]

Write the current hardware clock time to the software clock

sudo hwclock [-s|--hctosys]
made by @shridhargupta | data from tldr-pages