[ Thanks to Mike
Golvach for this link. ]
“Today, we’re going to take a look at a fairly simple process
(no pun intended), but one that (perhaps) doesn’t come up enough in
our workaday environments that the answer comes to mind as
obviously as it should. How does one find the number of open file
descriptors being used by any given process?“The question is a bit of a trick, in and of itself, since some
folks define ‘open file descriptors’ as the number of files any
given process has open at any given time. For our purposes, we’ll
be very strict, and make the (usually fairly large) distinction
between ‘files open’ and ‘open file descriptors…'”