Reformatted pages once more

This commit is contained in:
Ruben Vereecken
2016-01-13 12:04:46 +01:00
parent c9d0ed3e16
commit 9676334119
16 changed files with 61 additions and 61 deletions

View File

@@ -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
> 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.
- Find the processes that have a given file open:
@@ -11,14 +11,14 @@
`lsof -i :{{port}}`
- only output the process PID
- Only output the process PI:
`lsof -t {{/path/to/file}}`
- list files opened by the given user
- List files opened by the given use:
`lsof -u {{username}}`
- list files opened by the given command or process
- List files opened by the given command or proces:
`lsof -c {{process_or_command_name}}`