Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 4 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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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