[kanchilug] 1D1C - fuser

  • From: Dhanasekar <tkdhanasekar@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx, kanchilug@xxxxxxxxxxxxx
  • Date: Sat, 6 Aug 2022 06:00:00 +0530

fuser - identify processes using files or sockets
           fuser displays the PIDs of processes using the specified files
or filesystems.

To find process accessing a directory
$ fuser .
or
$ fuser /home/ilugc

To view more details enable verbose
$ fuser -v .
or
$ fuser -v /home/ilugc

To find process accessing file system
$ fsuer -v -m /etc/profile

To kill a processes accessing a file or socket
$ sudo fuser -k .

To interactively kill a process
$ sudo fuser -ki .

To list all the signals
$ sudo fuser --list-signals



regards,
T.Dhanasekar

Other related posts:

  • » [kanchilug] 1D1C - fuser - Dhanasekar