Posted in Command Line, Linux Find Open File in a Given Directory Binny V A January 4, 2009 1 Comment on Find Open File in a Given Directory Find the process that’s opened the file from a specified directory. You can use this if you cannot unmount a USB drive and want to know which file is open. lsof +D /media/usb Original Article Author: Binny V AA philosopher programmer who specializes in backend development and stoicism.
fuser -vm /media/usb