fuser displays the process IDs of the processes that are using the files specified as arguments.
Each process ID is followed by a letter code. These letter codes are interpreted as follows: if the process is using the file as
- c
- Indicates that the process is using the file as its current directory.
- m
- Indicates that the process is using a file mapped with mmap(2). See mmap(2) for details.
- n
- Indicates that the process is holding a non-blocking mandatory lock on the file.
- o
- Indicates that the process is using the file as an open file.
- r
- Indicates that the process is using the file as its root directory.
- t
- Indicates that the process is using the file as its text file.
- y
- Indicates that the process is using the file as its controlling terminal.
For block special devices with mounted file systems, all processes using any file on that device are listed. For all types of files (text files, executables, directories, devices, and so forth), only the processes using that file are reported.
If more than one group of files are specified, the options may be respecified for each additional group of files. A lone dash cancels the options currently in force.
The process IDs are printed as a single line on the standard output, separated by spaces and terminated with a single new line. All other output is written on standard error.
Any user can run fuser, but only the superuser can terminate another user's process.
|