How check file handles Linux?

Nguyễn Hào

New member
How check file handles Linux?
Answer
In Linux you can check /proc/<pid>/fd directory – 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