OS Manuals

/usr/bin/lslocks

Misc binaries for util-linux

From util-linux-misc 2.42.4-r2 (os), captured 2026-11-05 by running lslocks --help (exit 0). permalink

Usage:
 lslocks [options]

List local system locks.

Options:
 -b, --bytes            print SIZE in bytes rather than in human readable format
 -J, --json             use JSON output format
 -i, --noinaccessible   ignore locks without read permissions
 -n, --noheadings       don't print headings
 -o, --output <list>    output columns (see --list-columns)
     --output-all       output all columns
 -p, --pid <pid>        display only locks held by this process
 -Q, --filter <expr>    apply display filter
 -r, --raw              use the raw output format
 -u, --notruncate       don't truncate text in columns

 -H, --list-columns     list the available columns
 -h, --help             display this help
 -V, --version          display version

For more details see lslocks(8).
Options (13)
OptionDescriptionSource
-b, --bytesprint SIZE in bytes rather than in human readable formathelp + man
-J, --jsonUse JSON output format.help + man
-i, --noinaccessibleIgnore lock files which are inaccessible for the current user.help + man
-n, --noheadingsDo not print a header line.help + man
-o, --output listSpecify which output columns to print.help + man
--output-allOutput all available columns.help + man
-p, --pid pidDisplay only the locks held by the process with this pid.help + man
-Q, --filter exprPrint only the locks that meet the conditions specified by the expr.help + man
-r, --rawUse the raw output format.help + man
-u, --notruncateDo not truncate text in columns.help + man
-H, --list-columnsList the columns that can be specified with the --output option.help + man
-h, --helpDisplay help text and exit.help + man
-V, --versionDisplay version and exit.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.