fuser
identifies processes that are using files or sockets. fuser
is particularly useful to identify processes that prevent a device from being un-mounted. In such cases, umount
will print the error message umount: …: target is busy. $ sudo umount /mnt/media umount: /mnt/media: target is busy $ fuser -amuv /mnt/media