Move OS X and Linux pages into pages/common

This commit is contained in:
Zlatan Vasović
2014-01-29 22:58:24 +01:00
parent 003659bb99
commit 521ebdc1da
21 changed files with 1 additions and 1 deletions

15
common/lsof.md Normal file
View File

@@ -0,0 +1,15 @@
# lsof
> Lists open files and the corresponding processes
- find the processes that have a given file open
`lsof {{/path/to/file}}`
- find the process that opened a local internet port
`lsof -i :{{8080}}`
- only output the process PID (e.g. to pipe into kill)
`lsof -t {{/path/to/file}} | xargs kill -9`