arikfr Asked: 2010-05-05 12:58:08 +0800 CST2010-05-05 12:58:08 +0800 CST 2010-05-05 12:58:08 +0800 CST How to get number of files open in Ubuntu? 772 I would like to know if there is some utility that can show how many open files I have on an Ubuntu server? ubuntu files utility 1 Answers Voted Best Answer Cory J 2010-05-05T13:02:10+08:002010-05-05T13:02:10+08:00 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.
As root
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.