Need a list of all the open files on linux?
How do you get a list of all the open files on linux? There is a simple command that can give you all the information you need.
lsof
There are several helpful options to this command…
lsof by itself will give you all the open files. pipe this through grep to find what you are looking for.
lsof -p [processid] will give you a nice listing of all files for a process
lsof filename - will give you a list of all processes using a given file.
Posted: April 20th, 2008 under Linux.
Comments: none
Write a comment