LSCLOCKS(1)

๐Ÿ’– LSCLOCKS ๐Ÿ’–

okay bestie so you know how your computer has like... a million different clocks ticking away in there and you've never once thought about it? yeah. this is lsclocks, from the User Commands section of the manual, and it's here to show you all of them. ๐Ÿ•โœจ


๐ŸŒธ NAME ๐ŸŒธ

lsclocks โ€” display system clocks ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

lsclocks [option]

โœจ DESCRIPTION โœจ

lsclocks is a simple command to display system clocks. that's the whole vibe. it's not doing the most, it's just showing you the clocks. ๐ŸŽ€

It allows to display information like current time and resolution of clocks. Different kinds of clocks are supported, and when I say different kinds, I mean different kinds, like:

  • POSIX clocks: CLOCK_MONOTONIC, CLOCK_REALTIME, CLOCK_BOOTTIME, etc.
  • CPU clocks: clock_getcpuclockid(3).
  • PTP clocks: /dev/ptp0.
  • RTC clocks: /dev/rtc0.
  • Auxiliary clocks: CLOCK_AUX0, CLOCK_AUX1, etc.

it's giving clock census. it's giving time archaeology. periodt. ๐Ÿ‘‘


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -J, --json โ€” Use JSON output format. for when you want your clocks machine-readable, slay.
  • -n, --noheadings โ€” Don't print headings. minimalism era.
  • -o, --output list โ€” Specify which output columns to print. See the OUTPUT COLUMNS section for details of available columns.
  • --output-all โ€” Output all columns. all of them. every single one. no notes. ๐Ÿ”ฅ
  • -r, --raw โ€” Use raw output format.
  • -t, --time clock โ€” Show current time of one specific clock. just the one. your fave.
  • --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.
lowkey note: -d, -x, and -c are all repeatable, so if you got multiple clocks you wanna add, just keep stacking them. ๐Ÿซถ

๐ŸŒˆ 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 โญ

Each column has a type. Types are surround by < and >.

  • TYPE <string> โ€” Clock type.
  • ID <number> โ€” Numeric clock ID.
  • CLOCK <string> โ€” Name in the form CLOCK_
  • NAME <string> โ€” Shorter, easier to read name.
  • TIME <number> โ€” Current clock timestamp as returned by clock_gettime(2).
  • ISO_TIME <string> โ€” ISO8601 formatted version of TIME.
  • RESOL_RAW <number> โ€” Clock resolution as returned by clock_getres(2).
  • RESOL <number> โ€” Human readable version of RESOL_RAW.
  • REL_TIME <string> โ€” TIME time formatted as time range.
  • NS_OFFSET <number> โ€” Offset of the current namespace to the parent namespace as read from /proc/self/timens_offsets.
ngl REL_TIME being formatted as a time range is such a cute touch. time, but make it a range. ๐Ÿ“

๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Thomas WeiรŸschuh <thomas@t-8ch.de>


๐Ÿ” SEE ALSO ๐Ÿ”

clock_getres(2) clock_gettime(2)


๐Ÿ™ˆ REPORTING BUGS ๐Ÿ™ˆ

For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.


๐Ÿงš AVAILABILITY ๐Ÿงš

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


okay that's the whole page bestie, you ate that. this was util-linux 2.42.4, dated 2026-09-21, and it lives in the LSCLOCKS(1) corner of the manual. go check your clocks, they're literally ticking rn. ๐Ÿ’œ๐Ÿ•ฐ๏ธโœจ

๐Ÿ“ฆ where this page comes from
  • arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms