Count open file descriptors
Count open file descriptors of a running process.
cat /proc/$(pgrep myapp)/fd | wc -l
- tool
- linux133 commands
More linux commands
-
getenforceShow the current SELinux mode: Enforcing, Permissive or Disabled.
-
ls /etc/cron.* /var/spool/cron/crontabs/List cron files in the system directories and user crontabs.
-
printenv | sortShow all environment variables in alphabetical order.
-
iostat -xz 1Show extended disk I/O stats, updated every second.
-
pstree -pShow the process hierarchy with PIDs.