Find Open File in a Given Directory
Tagged with: command, file, folder, Linux, lock, lsof, open, umount, unmount, usb
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
Follow me(@binnyva) on Twitter
January 5th, 2009 13:03
fuser -vm /media/usb