lslocks
List local system locks. tldr-pages
On Linux
Linux
List all local system locks
lslocksIdentifyList locks with defined column headers
lslocks --output PID,COMMAND,PATH,...IdentifyList locks producing a raw output (no columns), and without column headers
lslocks --raw --noheadingsIdentifyList locks by PID input
lslocks --pid process_idIdentifyList locks with JSON output to stdout
lslocks --jsonIdentify