Blog » Linux Commands » Linux – List all processes accessing particular directory

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:

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.

Leave a Comment

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