Count the files open by a program

By | August 15, 2009

When you need to see how many files a program opened, you must run the following command:

lsof | grep my_program | wc -l

Cheers,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.