Jump to content
Wikipedia The Free Encyclopedia

Lsof: Difference between revisions

From Wikipedia, the free encyclopedia

ChP94 (talk | contribs)

44 edits
undo
Content deleted Content added
Line 24: Line 24:


[[es:Lsof]]
[[es:Lsof]]
[[pl:lsof]]

Revision as of 08:08, 19 February 2007

lsof is a command used in many Unix-like systems that is used to report a list of all open files and the processes that opened them. It works in and supports several UNIX flavors.

Open files in the system include disk files, pipes, network sockets and devices opened by all processes. One use for this command is when a disk cannot be unmounted because (unspecified) files are in use. The listing of open files can be consulted (suitably filtered if necessary) to identify the process that is using the files.

# lsof /var
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
syslogd 350 root 5w VREG 222,5 0 440818 /var/adm/messages
syslogd 350 root 6w VREG 222,5 339098 6248 /var/log/syslog
cron 353 root cwd VDIR 222,5 512 254550 /var -- atjobs

See also

AltStyle によって変換されたページ (->オリジナル) /