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-care 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 arecompactfor JSON output with minimal whitespace, andlinesfor 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 formCLOCK_ - NAME
<string>โ Shorter, easier to read name. - TIME
<number>โ Current clock timestamp as returned byclock_gettime(2). - ISO_TIME
<string>โ ISO8601 formatted version of TIME. - RESOL_RAW
<number>โ Clock resolution as returned byclock_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