In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the use of linux fuser command to use the file or file structure recognition process, the article is very detailed, has a certain reference value, interested friends must read it!
The fuser command is used to report the files and network sockets used by the process.
The fuser command shows which program is currently using a file, mount point, or even a network port on disk, and gives details of the program process. It also displays the process ID that uses the specified file or file system.
Each process number is followed by a letter indicating how the process uses the file.
C: indicates the working directory of the process. E: indicates that the file is the executable of the process (that is, the process is pulled by the file). F: indicates that the file is opened by the process, and the f character is not displayed by default. F: indicates that the file is opened for writing by the process, and the F character is not displayed by default. R: indicates that the directory is the root of the process. M: instructs the process to use this file for memory mapping, or whether the file is a shared library file and is mapped to memory by the process.
Syntax format: fuser [parameters] [file]
Common parameters:
Reference example
To list the process number of the local process that uses the / etc/passwd file:
[root@linuxcool ~] # fuser / etc/passwd
List the process number and user login name of the process that uses the / etc/filesystems file:
[root@linuxcool] # fuser-u / etc/filesystems
Terminate all processes that use a given file system:
[root@linuxcool] # fuser-k-x-u-c / dev/hd1 is all the contents of the file or file structure identification process using linux's fuser command. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.