LSCLOCKS(1) User Commands LSCLOCKS(1)

# [NAME](#NAME)

lsclocks - display system clocks

# [SYNOPSIS](#SYNOPSIS)

**lsclocks** \[option]

# [DESCRIPTION](#DESCRIPTION)

**lsclocks** is a simple command to display system clocks.

It allows to display information like current time and resolution of clocks. Different kinds of clocks are supported.

•POSIX clocks: **CLOCK\_MONOTONIC**, **CLOCK\_REALTIME**, **CLOCK\_BOOTTIME**, etc.

•CPU clocks: [**clock\_getcpuclockid**(3)](/man/os/util-linux/clock_getcpuclockid.3).

•PTP clocks: **/dev/ptp0**.

•RTC clocks: **/dev/rtc0**.

•Auxiliary clocks: **CLOCK\_AUX0**, **CLOCK\_AUX1**, etc.

# [OPTIONS](#OPTIONS)

**-J**, **--json**

Use JSON output format.

**-n**, **--noheadings**

Don’t print headings.

**-o**, **--output** *list*

Specify which output columns to print. See the **OUTPUT COLUMNS** section for details of available columns.

**--output-all**

Output all columns.

**-r**, **--raw**

Use raw output format.

**-t**, **--time** *clock*

Show current time of one specific clock.

**--no-discover-dynamic**

Do not try to discover dynamic clocks.

**-d**, **--dynamic-clock** *path*

Also display specified dynamic clock. Can be specified multiple times.

**--no-discover-rtc**

Do not try to discover RTCs.

**-x**, **--rtc** *path*

Also display specified RTC. Can be specified multiple times.

**-c**, **--cpu-clock** *pid*

Also display CPU clock of specified process. Can be specified multiple times.

**-h**, **--help**

Display help text and exit.

**-V**, **--version**

Display version and exit.

# [ENVIRONMENT](#ENVIRONMENT)

LSCLOCKS\_COLUMNS=

Specifies a comma-separated list of output columns to print. All columns listed in **OUTPUT COLUMNS** can be used.

**LIBSMARTCOLS\_DEBUG**=all

enables libsmartcols debug output.

**LIBSMARTCOLS\_DEBUG\_PADDING**=on

use visible padding characters.

**LIBSMARTCOLS\_JSON**=compact|lines

Controls JSON output format when using **--json**. Supported values are **compact** for JSON output with minimal whitespace, and **lines** for JSON Lines format (one JSON object per line). If unset or set to any other value, pretty-printed JSON is used.

# [OUTPUT COLUMNS](#OUTPUT_COLUMNS)

Each column has a type. Types are surround by &lt; and &gt;.

TYPE &lt;string&gt;

Clock type.

ID &lt;number&gt;

Numeric clock ID.

CLOCK &lt;string&gt;

Name in the form **CLOCK\_**

NAME &lt;string&gt;

Shorter, easier to read name.

TIME &lt;number&gt;

Current clock timestamp as returned by [**clock\_gettime**(2)](/man/os/util-linux/clock_gettime.2).

ISO\_TIME &lt;string&gt;

ISO8601 formatted version of **TIME**.

RESOL\_RAW &lt;number&gt;

Clock resolution as returned by [**clock\_getres**(2)](/man/os/util-linux/clock_getres.2).

RESOL &lt;number&gt;

Human readable version of **RESOL\_RAW**.

REL\_TIME &lt;string&gt;

**TIME** time formatted as time range.

NS\_OFFSET &lt;number&gt;

Offset of the current namespace to the parent namespace as read from **/proc/self/timens\_offsets**.

# [AUTHORS](#AUTHORS)

*Thomas Weißschuh* &lt;thomas@t-8ch.de&gt;

# [SEE ALSO](#SEE_ALSO)

[**clock\_getres**(2)](/man/os/util-linux/clock_getres.2) [**clock\_gettime**(2)](/man/os/util-linux/clock_gettime.2)

# [REPORTING BUGS](#REPORTING_BUGS)

For bug reports, use the *issue tracker* &lt;https://github.com/util-linux/util-linux/issues&gt;.

# [AVAILABILITY](#AVAILABILITY)

The **lsclocks** command is part of the util-linux package which can be downloaded from *Linux Kernel Archive* &lt;https://www.kernel.org/pub/linux/utils/util-linux/&gt;.

2026-10-19 util-linux 2.42.4

---

Document: lsclocks(1) from util-linux 2.42.4-r1 (Chainguard OS)
