Fuser command summary, fuser SummaryPrerequisites
In linux, when you use the umount command to detach a mount point, a message "device is busy" is displayed. Then, fuser can find out who is using this resource; of course, umount-lf [mount point] can also be forcibly detached
Fuser Overview
The Fuser command is used to display information about all processes that are using the specified file, file system, or sockets.
Example 1:
# Fuser-m-u/mnt/usb1/Mnt/usb1: 1347c (Root) 1348c (Guido) 1349c (Guido)
In example 1, the-M and-u options are used to find the owner of all processes
files or folders under the/lost+found folder of the file system. Use their I-node number to name them so they can find the files they need.Lost+found folder through its English meaning we can all know that it is a lost and found place.So when a user discovers that he or she has lost a file and is able to go down to the/lost+found folder after running fsck, the file name is not able to recognize the function, only the file type can be determined with a comma
users can find the files they need. Lost+found catalogue through its English meaning we can all know that it is a lost and found place. Therefore, when a user discovers that he or she has lost a file, it can go to the/lost+found directory after the execution of fsck, and then the file cannot be identified by the filename, only the type of the file is determined by a command such as files, if it is a data file, Can be viewed with the more or VI
/*********************************************************************
* Author:samson
* date:11/04/2014
* Test Platform:
* 3.13.0-24-generic
* GNU bash, 4.3.11 (1)-release
* *************************************************************/
Fuser: Displays the process number using a special file or file system and optionally whether to kill. Because any file or device in GNU Linux is considered a file, the special files mentioned here include, but a
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
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 proces
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.