Quickly Find Out List Of Open Files By Specific User Through Linux Mint / Ubuntu Terminal
June 1, 2012
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 :
[cc lang=”bash”]
lsof -u username
[/cc]
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 :
[cc lang=”bash”]
lsof -u username|less
[/cc]
The output will look something like below :
Hit the enter key to continue with the list or ‘q’ to exit lsof.
Cheers.
