Use the Fuser command on a Linux system to list process numbers

Source: Internet
Author: User

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:

The code is as follows:

[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

The code is as follows:

[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

The code is as follows:

[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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.