Você deve usar o comando fstat
, você pode executá-lo como user
:
The
fstat
utility identifies open files. A file is considered open by a process if it was explicitly opened, is the working directory, root directory, jail root directory, active executable text, or kernel trace file for that process. If no options are specified, fstat reports on all open files in the system.