Lsof Command Examples

From vpsget wiki
Revision as of 13:11, 12 March 2014 by Vq (talk | contribs) (Protected "Lsof Command Examples" (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
Jump to: navigation, search

Original post: http://www.thegeekstuff.com/2012/08/lsof-command-examples/

1. Introduction to lsof

Simply typing lsof will provide a list of all open files belonging to all active processes.

  1. lsof
COMMAND  PID       USER   FD      TYPE     DEVICE  SIZE/OFF       NODE NAME
init       1       root  cwd       DIR        8,1      4096          2 /
init       1       root  txt       REG        8,1    124704     917562 /sbin/init
init       1       root    0u      CHR        1,3       0t0       4369 /dev/null
init       1       root    1u      CHR        1,3       0t0       4369 /dev/null
init       1       root    2u      CHR        1,3       0t0       4369 /dev/null
init       1       root    3r     FIFO        0,8       0t0       6323 pipe
...