fixed poor english :(
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# lsof
|
# lsof
|
||||||
|
|
||||||
> Lists open files and the corresponding processes
|
> Lists open files and the corresponding processes
|
||||||
> Note: In most case, you need root privilege (or sudo) because you want to list files opened by other than you.
|
> Note: In most cases, you need root privilege (or use sudo) because you want to list files opened by others
|
||||||
|
|
||||||
- find the processes that have a given file open
|
- find the processes that have a given file open
|
||||||
|
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
|
|
||||||
`lsof -t {{/path/to/file}}`
|
`lsof -t {{/path/to/file}}`
|
||||||
|
|
||||||
- list files opened by user
|
- list files opened by the given user
|
||||||
|
|
||||||
`lsof -u {{username}}`
|
`lsof -u {{username}}`
|
||||||
|
|
||||||
- list files opened by command (or process) name (e.x nginx)
|
- list files opened by the given command or process (e.x nginx)
|
||||||
|
|
||||||
`lsof -c {{process_or_command_name}}`
|
`lsof -c {{process_or_command_name}}`
|
||||||
|
Reference in New Issue
Block a user