Lsof

From NovaOrdis Knowledge Base
Revision as of 15:05, 3 May 2017 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

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>