Easy Tutorial
❮ Linux Comm Date Linux Comm Eval ❯

Linux hwclock Command

Linux Command Manual

The Linux hwclock command is used to display and set the hardware clock.

In Linux, there are two types of clocks: the hardware clock and the system clock. The hardware clock refers to the clock device on the motherboard, which is typically set in the BIOS screen. The system clock is the clock in the kernel. When Linux starts, the system clock reads the settings of the hardware clock and then operates independently. All Linux-related commands and functions read the settings of the system clock.

Syntax

hwclock [--adjust][--debug][--directisa][--hctosys][--show][--systohc][--test]
[--utc][--version][--set --date=<date and time>]

Parameters:

Examples

Display the current time

# hwclock
Thursday, May 27, 2010 18:04:31 -0.704214 seconds

View version information

# hwclock -v
hwclock from util-linux-2.12a

Linux Command Manual

❮ Linux Comm Date Linux Comm Eval ❯