Easy Tutorial
❮ Linux Comm Time Linux Comm Fsconf ❯

Linux clock Command

Linux Command Manual

The Linux clock command is used to adjust the RTC time.

RTC is the built-in hardware time of the computer. Executing this command can display the current time, adjust the hardware clock time, set the system time to match the hardware clock time, or restore the system time to the hardware clock.

Syntax

clock [--adjust][--debug][--directisa][--getepoch][--hctosys][--set --date="&lt;date and time>"][--setepoch --epoch=<>][--show][--systohc][--test][--utc][--version]

Parameter Description:

Examples

Get the current time

# clock // Get the current time

Display UTC time

# clock -utc // Display UTC time

Linux Command Manual

❮ Linux Comm Time Linux Comm Fsconf ❯