How to get number of files open in Ubuntu?
I would like to know if there is some utility that can show how many open files I have on an Ubuntu server?
Solution 1:
As root
lsof | wc -l
This will give you the number of lines returned by lsof. This utility lists all open files, including things like network sockets, so also man lsof for more options on what types of files are displayed.