Main menu:

Site search

Categories

Archive

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.

Write a comment