Show open files of a process

From AdminWiki

(Difference between revisions)
Jump to: navigation, search
 
Line 4: Line 4:
  ls -l /proc/<pid>/fd
  ls -l /proc/<pid>/fd
-
{{Category:lsof}} {{Category:shell}} {{Category:network}} {{Category:snippet}} {{Category:debugging}} {{Category:procfs}}
+
{{Category:lsof}} {{Category:shell}} {{Category:snippet}} {{Category:debugging}} {{Category:procfs}}

Latest revision as of 13:02, 8 May 2009

  • With lsof:
lsof -p <pid>
  • Using procfs:
ls -l /proc/<pid>/fd

Category:Lsof Category:Shell Category:Snippet Category:Debugging Category:Procfs

Personal tools