Lsof: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
In absence of any options, <tt>lsof</tt> lists all open files by all processes. | In absence of any options, <tt>lsof</tt> lists all open files by all processes. | ||
To list open files by a specific process, use the process' PID as follows: | |||
<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.
To list open files by a specific process, use the process' PID as follows:
lsof -p <pid>