0

Trying to get an idea of how many open files I'm currently using so I can tune my limits.conf file. Is there a way to get Ubuntu to spit out the current open files so I can use this to tune? I found a thread from awhile ago but the command did not work.

1
  • 1
    What command did you try, that didn't work?
    – vonbrand
    May 14, 2013 at 22:56

2 Answers 2

3

You can tune the output of lsof as you like. See man lsof.

1

For a count of files open, you could do lsof | wc -l which would report the number of lines, which would correlate the number of files currently open.

2
  • Yea I tried lsof | wc -l yet for some reason it just hangs and I have to ^ctrl c out of it. May 15, 2013 at 1:10
  • It will take time... you have to allow the lsof to continue until it is done.
    – vgoff
    May 15, 2013 at 1:32

Not the answer you're looking for? Browse other questions tagged .