mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 11:49:07 +00:00
Update cheatsheets
This commit is contained in:
29
linux/lslocks
Normal file
29
linux/lslocks
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
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 --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`
|
||||
Reference in New Issue
Block a user