There are two common ways to list all open file descriptors: One way is to use the lsof command line utility, and another way is to read through the /proc/PID/fd directory.