How can I know which files a proccess is accessing?

Oliver Fromme olli at lurza.secnetix.de
Thu Jun 8 13:06:28 UTC 2006


It is worth mentioning that lsof is also extremely useful
for finding inodes that have a link count of 0, i.e. files
that have been deleted but are still open by a process.
"lsof +L1" will list them with their inode numbers and the
PIDs of the processes that keep them open.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"Clear perl code is better than unclear awk code; but NOTHING
comes close to unclear perl code"  (taken from comp.lang.awk FAQ)


More information about the freebsd-stable mailing list