Quickly Find Out List Of Open Files By Specific User Through Linux Mint / Ubuntu Terminal

Share on FacebookShare on Google+Tweet about this on TwitterPin on PinterestShare on RedditPrint this page

It can be useful to get a list of all open files per user basis for a given Linux Mint / Ubuntu system.

To do this quickly, open Terminal and type :

lsof -u username

This will generate an output of all open files by the user name specified. Run it as root to get a list of open files for any user.To make it more readable and stop scrolling through the screen, use the ‘less’ parameter :

lsof -u username|less

Display list of open files for a specified user

The output will look something like below :

Output of lsof for given user

Hit the enter key to continue with the list or ‘q’ to exit lsof.



Comments are closed.