On this page you find all important commands for the CLI tool hwclock. If the
command you are looking for is missing please ask our AI.
hwclock
The "hwclock" command line tool is used in Linux systems to interact with the system's hardware clock or real-time clock (RTC).
- It is primarily used to read and set the system time from or to the hardware clock.
- The hardware clock is a separate, battery-powered clock that continues to run even when the system is powered off.
- The "hwclock" command can display the current system time stored in the hardware clock.
- It can also set the system time based on the value stored in the hardware clock.
- The tool allows specifying the hardware clock device to use if there are multiple clocks in the system.
- It supports different time formats like UTC (Coordinated Universal Time) and local time.
- The "hwclock" command can synchronize the system clock to the hardware clock.
- It is often used during system startup to read the hardware clock and set the system time accordingly.
- The tool can be utilized to adjust for time drift or discrepancies between the system clock and hardware clock.
- The "hwclock" command can be executed with various options and arguments to perform different time-related operations.
List of commands for hwclock:
-
hwclock:tldr:484da hwclock: Display the current time as reported by the hardware clock.$ hwclocktry on your machineexplain this command
-
hwclock:tldr:ed5ea hwclock: Write the current software clock time to the hardware clock (sometimes used during system setup).$ hwclock --systohctry on your machineexplain this command