Inom
Hitta mer dokumentation
Supportresurser som ingår
| Ladda ner denna bok i PDF
NAME
- fuser - Identify processes using a file or file structure
SYNOPSIS
-
/usr/sbin/fuser [ - [ c | f ] ku ] files [ [- [ c | f ] ku ] files ] . . .
AVAILABILITY
- SUNWcsu
DESCRIPTION
-
fuser displays the process ID sof the processes that are using the files specified as arguments. Each process ID is followed by a letter code, interpreted as follows: if the process is using the file as 1) its current directory, the code is c; 2) its root directory, the code is r; 3) an open file, the code is o; or 4) its text file, the code is t. 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 on), only the processes using that file are reported.
- If more than one group of files is specified, the options may be respecified for each additional group of files. A lone dash cancels the options currently in force.
- The process ID sare printed on the standard output as a single line, separated by spaces and terminated with a single new line. All other output is written on standard error.
- Appropriate privilege is needed to use this command.
OPTIONS
-
- -c
- Report on files that are mount points for file systems, and any files within that mounted file system.
-
- -f
- Print a report for the named file, not for files within a mounted file system.
-
- -k
- Send the SIGKILL signal to each process. Because this option spawns kills for each process, the kill messages may not show up immediately. [See kill(2TSOL).]
-
- -u
- Display the user login name in parentheses following the process ID .
SUMMARY OF TRUSTED
- To succeed, this command requires the sys_mount privilege. With the -k option, the command also needs the proc_owner privilege to terminate another user's process.
SOLARIS CHANGES
SEE ALSO
-
ps(1), mount (1MTSOL),kill(2TSOL), signal(3C)
NOTES
- Because it works with a snapshot of the system image, fuser may miss processes that begin using a file while fuser is running. Also, processes reported as using a file may have stopped using it while fuser was running. These factors should discourage the use of the -k option.
|
|