How check file handles Linux?

How check file handles Linux?
Answer
In Linux you can check
/proc/
<pid>
/fd directory
</pid>
– for every open fd there will be a file, named as handle. I’m almost sure this way is non-portable. Alternatively you can use lsof – available for Linux, AIX, FreeBSD and NetBSD, according to man lsof .
 

Tìm kiếm

Back
Top