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
Byte sized tech know-how.
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
Copyright © 2024 Txt
fuser -vm /media/usb