I would like to know if there is some utility that can show how many open files I have on an Ubuntu server?

link|improve this question

57% accept rate
feedback

1 Answer

up vote 3 down vote accepted

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.

link|improve this answer
1  
You need to correct typo in answer. Should be lsof | wc -l. You don't have a space before the -l – Richard Holloway May 4 '10 at 21:16
Thanks for the speedy answer! – arikfr May 4 '10 at 21:16
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.