LSLOCKS(8) lslocks - lslocks [] lslocks . -b, --bytes Print sizes in bytes rather than in human-readable form. By default, sizes are shown in units that are powers of 1024 bytes. The formal abbreviations for these units (KiB, MiB, GiB, ...) are further shortened to just their first letter: K, M, G, .... -H, --list-columns List the columns that can be specified with the --output option. Can be used with --json or --raw to get the list in a machine-readable format. -i, --noinaccessible . -J, --json . -n, --noheadings . -o, --output . --help . ,,+" (., lslocks -o +BLOCKER). --output-all . -p, --pid -. -Q, --filter Print only the locks that meet the conditions specified by the expr. This feature is EXPERIMENTAL. See also scols-filter(5). For example exclude POSIX type locks, but print all READ mode ones locks on files with .qcow2 as extension: lslocks --filter 'TYPE != "POSIX" and MODE == "READ" and PATH =~ ".*\.qcow2"' -r, --raw . -u, --notruncate . -h, --help . -V, --version . LIBSMARTCOLS_DEBUG=all ,,libsmartcols" . LIBSMARTCOLS_DEBUG_PADDING=on . . . ; ,,LEASE" ( fcntl(2)), ,,FLOCK" ( flock(2)), ,,POSIX" ( fcntl(2) lockf(3)) ,,OFDLCK" ( fcntl(2)). . - -. : : . (, ). , * (). ; 0 ( ), 1 . ( fcntl(2).) . . . , , ,,..." . ; --notruncate . . . ,,_. , . . LSLOCKS_COLUMNS= Specifies a comma-separated list of output columns to print. All columns listed by --list-columns can be used. lslocks lslk(8), Victor A. Abell 2001. ,, " , FLOCK OFD . . fork(2) / cmsg(3), . ( ) . lslocks . The default output is subject to change. So whenever possible, you should avoid using default output in your scripts. For OFD locks, the PID column may show -1. Such lines cannot be selected by the filter, because the current filter engine does not support negative numbers. Davidlohr Bueso Christian Goeschel Ndjomouo flock(1), fcntl(2), lockf(3), scols-filter(5) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". lslocks ,,util-linux" . util-linux 2.42.2 2026-06-16 LSLOCKS(8)