1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 21:44:55 +02:00
tldr/pages/linux/lslocks.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

395 B

lslocks

List local system locks.

  • List all local system locks:

lslocks

  • List locks with defined column headers:

lslocks --output {{PID}},{{COMMAND}},{{PATH}}

  • List locks producing a raw output (no columns), and without column headers:

lslocks --raw --noheadings

  • List locks by PID input:

lslocks --pid {{PID}}

  • List locks with json output to stdout:

lslocks --json