In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the specific usage of fuser command in Linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn the specific usage of the fuser command in the Linux system.
The fuser command displays the process number with the specified file or file system. By default, each file name is followed by a letter to indicate the type.
-l display signal
-4 IPv4
-6 IPv6
-an all files related to the program
-k delete all files related to the program
-I interbreeding mode
-s does not display processing information
-u PID displays the user name
-v runtime, displays trust processing information
-zeroing
-m mount file system
-signal sends a signal
-n specify keywords to search, such as file, UDP, TCP
-V display version display
[file type description]
C: current directory
E: extension
F: open file
R: follow the directory
M: shared library
Example:
The code is as follows:
[root@redhat ~] # fuser-l # display signal
HUP INT QUIT ILL TRAP ABRT IOT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM
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 # shows the processes related to the / root directory
/ 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 # kills processes related to the / root directory
/ root: 4552c 4630c 4661c 4664c 4666c 4669c 4671c 4732c 4733c 4735c 4736c 4740c 4741c 4743c 4744c 4750c 4751c 4767c 11065c 30632c 31755c
At this point, I believe you have a deeper understanding of "the specific use of the fuser command in the Linux system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.