mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
584 B
Plaintext
30 lines
584 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# lslocks
|
|
|
|
> List local system locks.
|
|
> More information: <https://manned.org/lslocks>.
|
|
|
|
- List all local system locks:
|
|
|
|
`lslocks`
|
|
|
|
- List locks with defined column headers:
|
|
|
|
`lslocks {{[-o|--output]}} {{PID}},{{COMMAND}},{{PATH}}`
|
|
|
|
- List locks producing a raw output (no columns), and without column headers:
|
|
|
|
`lslocks {{[-r|--raw]}} {{[-n|--noheadings]}}`
|
|
|
|
- List locks by PID input:
|
|
|
|
`lslocks {{[-p|--pid]}} {{PID}}`
|
|
|
|
- List locks with JSON output to `stdout`:
|
|
|
|
`lslocks {{[-J|--json]}}`
|