1997-11-25 18:16:33 -05:00
|
|
|
Lsof (LiSt Open Files) lists information about files that are open by the
|
|
|
|
running processes. An open file may be a regular file, a directory, a block
|
|
|
|
special file, a character special file, an executing text reference, a
|
|
|
|
library, a stream or a network file (Internet socket, NFS file or Unix domain
|
|
|
|
socket).
|
2005-02-17 07:48:09 -05:00
|
|
|
|
2010-12-02 04:14:53 -05:00
|
|
|
lsof(8) runs sgid kmem. However, the code has NOT been audited... you
|
|
|
|
have been warned.
|
|
|
|
|
2005-02-17 07:48:09 -05:00
|
|
|
Main use of lsof will be for writing cross-platforms scripts.
|
|
|
|
OpenBSD includes fstat(1), which serves the same basic purpose.
|