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
Posted in Command Line, Linux | 1 Comment »
I am Binny V A, a freelance Web Developer on the LAMP Platform. Open Source Geek.
Follow me(@binnyva) on Twitter