The fuser command displays the process process number with the specified file or file system, and by default each filename is followed by a letter to indicate the type
-L Display Signal
-4 IPv4
-6 IPV6
-A All files related to the program
-K Remove all files related to the program
-I cross-cross mode
-S does not display processing information
-u PID Display user name
-V runtime, showing trust processing information
-Clear Zero
-M Mount file system
-signal Send a signal
-n Specifies keywords for searching, such as file, UDP, TCP
-V Display version display
"File type description"
C: Current directory
E: Extending
F: Open files
R: With directory
M: Shared libraries
Cases:
[Root@redhat ~]# fuser-l #显示信号
HUP INT QUIT ILL TRAP abrt IOT bus fpe KILL USR1 segv USR2 PIPE alrm
Stkflt chld CONT STOP tstp ttin ttou URG xcpu xfsz vtalrm PROF winch IO PWR SYS
Unused
[Root@redhat ~]# fuser-a/root #显示与/root directory-related processes
/root:4552c 4630c 4661c 4664c 4666c 4669c 4671c 4732c 4733c 4735c 4736c 4740c 4741c 4743c 4744c 4750c 4751c 4767c 11065c 30632C 31755c
[Root@redhat ~]# fuser-k/root #杀死与/root directory-related processes
/root:4552c 4630c 4661c 4664c 4666c 4669c 4671c 4732c 4733c 4735c 4736c 4740c 4741c 4743c 4744c 4750c 4751c 4767c 11065c 30632C 31755c