Lsof: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:
* streams
* streams
* network files (Internet socket, NFS file or UNIX domain socket)
* network files (Internet socket, NFS file or UNIX domain socket)
In absence of any options, <tt>lsof</tt> lists all open files by all processes.


<pre>
<pre>
lsof -p <pid>
lsof -p <pid>
</pre>
</pre>

Revision as of 15:05, 3 May 2017

Internal

Overview

lsof lists information about files opened by processes. lsof provides information about:

  • regular files
  • directories
  • block special files
  • character special files
  • executing text references
  • libraries
  • streams
  • network files (Internet socket, NFS file or UNIX domain socket)

In absence of any options, lsof lists all open files by all processes.

lsof -p <pid>