2 .\" Man page for the lslocks command.
3 .\" Copyright 2012 Davidlohr Bueso <dave@gnu.org>
4 .\" May be distributed under the GNU General Public License
6 .TH LSLOCKS 8 "February 2012" "util-linux" "System Administration"
8 lslocks \- list local system locks
10 .BR lslocks " [" options ]
14 lists information about all the currently held file locks in a Linux system.
19 Display help text and exit.
21 .BR \-n , " \-\-noheadings"
22 Do not print a header line.
24 .BR \-o , " \-\-output " \fIlist\fP
25 Specify which output columns to print. Use
27 to get a list of all supported columns.
29 The default list of columns may be extended if \fIlist\fP is
30 specified in the format \fI+list\fP (e.g. \fBlslocks -o +BLOCKER\fP).
32 .BR \-p , " \-\-pid " \fIpid\fP
33 Display only the locks held by the process with this \fIpid\fR.
36 Use the raw output format.
38 .BR \-u , " \-\-notruncate"
39 Do not truncate text in columns.
43 The command name of the process holding the lock.
46 The process ID of the process which holds the lock.
49 The type of lock; can be FLOCK (created with flock(2)) or POSIX (created with fcntl(2) and lockf(3)).
52 Size of the locked file.
55 The lock's access permissions (read, write). If the process is blocked and waiting for the lock,
56 then the mode is postfixed with an '*' (asterisk).
59 Whether the lock is mandatory; 0 means no (meaning the lock is only advisory), 1 means yes.
63 Relative byte offset of the lock.
66 Ending offset of the lock.
69 Full path of the lock. If none is found, or there are no permissions to read the path,
70 it will fall back to the device's mountpoint. The path might be truncated; use
75 The PID of the process which blocks the lock.
79 The lslocks command is meant to replace the lslk(8) command, originally written by
80 Victor A. Abell <abe@purdue.edu> and unmaintained since 2001.
85 Davidlohr Bueso <dave@gnu.org>
94 The lslocks command is part of the util-linux package and is available from
95 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.