Списки открытых файловых дескрипторов процесса – в /proc/<pid>/fd/:
# cat /proc/33943/cmdline ;ls -l /proc/33943/fd/
/bin/bash
total 0
lrwx------ 1 root root 64 Mar 16 02:27 0 -> /dev/pts/0
lrwx------ 1 root root 64 Mar 16 02:27 1 -> /dev/pts/0
lrwx------ 1 root root 64 Mar 16 02:27 2 -> /dev/pts/0
lrwx------ 1 root root 64 Mar 16 02:27 255 -> /dev/pts/0
[root@lab-00 ~]# cat /proc/1905/cmdline; ls -l /proc/1905/fd/
/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
total 0
lrwx------ 1 root root 64 Mar 16 02:27 0 -> /dev/null
lrwx------ 1 root root 64 Mar 16 02:27 1 -> /dev/null
lrwx------ 1 root root 64 Mar 16 02:27 2 -> 'socket:[550039]'
l-wx------ 1 root root 64 Mar 16 02:27 3 -> /run/lighttpd.pid
lrwx------ 1 root root 64 Mar 16 02:27 4 -> 'socket:[550043]'
l-wx------ 1 root root 64 Mar 16 02:27 5 -> /var/log/lighttpd/error.log
l-wx------ 1 root root 64 Mar 16 02:27 6 -> /var/log/lighttpd/access.log
lrwx------ 1 root root 64 Mar 16 02:27 7 -> 'anon_inode:[eventpoll]'
lr-x------ 1 root root 64 Mar 16 02:27 8 -> 'pipe:[550052]'
l-wx------ 1 root root 64 Mar 16 02:27 9 -> 'pipe:[550052]'
28