mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:33:50 +02:00
lsof: shorten main desc, expand PID acronym (#1346)
This commit is contained in:
parent
777073fcb8
commit
69c12013b3
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# lsof
|
||||
|
||||
> Lists open files and the corresponding processes.
|
||||
> Note: In most cases, you need root privilege (or use sudo) because you want to list files opened by others.
|
||||
> Note: Root privileges (or sudo) is required to list files opened by others.
|
||||
|
||||
- Find the processes that have a given file open:
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
|||
|
||||
`lsof -i :{{port}}`
|
||||
|
||||
- Only output the process PID:
|
||||
- Only output the process ID (PID):
|
||||
|
||||
`lsof -t {{/path/to/file}}`
|
||||
|
||||
|
@ -23,6 +23,6 @@
|
|||
|
||||
`lsof -c {{process_or_command_name}}`
|
||||
|
||||
- List files opened by the given PID:
|
||||
- List files opened by a specific process, given its PID:
|
||||
|
||||
`lsof -p {{PID}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue