lslocks — list local system locks
lslocks [options]
−p,
−−pidSpecify the process id, if none is given, it will display all locks
−h,
−−helpPrint a help text and exit.
−o,
−−output listSpecify which output columns to print. Use
−−help to get a
list of all supported columns.
−n,
−−noheadingsDo not print a header line.
−u,
−−notruncateDo not truncate text in columns.
−r,
−−rawUse the raw output format.
COMMANDThe command name of the process holding the lock.
PIDProcess ID which holds the lock.
TYPEType of lock, can be FLOCK (created with flock(2)) or POSIX (created with fcntl(2) and lockf(2))
SIZESize of the locked file.
MODELock access permissions (read, write).
MMandatory state of the lock: 0 if none; 1 if set. (See chmod(1)).
STARTRelative byte offset of the lock.
ENDEnding offset of the lock.
PATHFull path of the lock - if none is found or no
permissions to read the path it will fallback to the
device's mountpoint. The path might be truncated, use
−−notruncate to
get the full path.