1

I just wonder if somewhere we have some command that gives the following

  • we have server - RHEL 7.2 redhat version

usually before umount on mount point folder , we need to kill the PIDS that related mount point folder

example

lets say we want to perform

umount  /golden/mnt1

So we need to kill all PID that related to /golden/mnt1

example

lsof /golden/mnt1

gives the PIDS as

54642
5459
65753
6581
94763
4826

so we need to kill all above PIDS

only then we can do safety umount /golden/mnt1

what we are searching , is maybe command that do both approach of lsof and kill all PIDS

appreciate to get ideas about this

1
  • Previous discussions with you did mention xargs, didn't they? Jan 11, 2022 at 22:56

1 Answer 1

4
fuser -k -m /golden/mnt1

See man fuser

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.