1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/lslocks.md

25 lines
492 B
Markdown
Raw Normal View History

2019-05-28 11:27:22 +02:00
# lslocks
> List local system locks.
> More information: <https://manned.org/lslocks>.
2019-05-28 11:27:22 +02:00
- List all local system locks:
`lslocks`
- List locks with defined column headers:
`lslocks {{[-o|--output]}} {{PID}},{{COMMAND}},{{PATH}}`
2019-05-28 11:27:22 +02:00
- List locks producing a raw output (no columns), and without column headers:
`lslocks {{[-r|--raw]}} {{[-n|--noheadings]}}`
2019-05-28 11:27:22 +02:00
- List locks by PID input:
`lslocks {{[-p|--pid]}} {{PID}}`
2019-05-28 11:27:22 +02:00
- List locks with JSON output to `stdout`:
2019-05-28 11:27:22 +02:00
`lslocks {{[-J|--json]}}`