Linux – List all processes accessing particular directory

You may need to find all processes accessing particular directories i.e. /home/user. You can use fuser command to list all processes as follow:

WHMCS Complete Billing and Support

fuser -va /home/user

Replace /home/user with actual path. lsof is another way but it shows all files including network sockets by default. With fuser, you do not need to grep the output.

Posted in Linux Commands.

Leave a Reply

Your email address will not be published. Required fields are marked *