Number of file descriptors

view full story

http://serverfault.com – I would like to check how many file descriptors are actually used: cat /proc/sys/fs/file-nr 12750 0 753795 The first column (12750) indicates the number of file descriptors allocated since boot. I would like to know why the number from the following command is different (assuming this one liner is returning the correct value: for pid in $(lsof | awk '{ print $2 }' | uniq); do find /proc/$pid/fd/ -type l 2>&1 | grep -v "No"; done | wc -l 11069 (HowTos)