fuser(1M) fuser(1M)NAME fuser - identify processes using a file or file structure SYNOPSIS /etc/fuser [-] [-k] [-nnamelist] [-u] file... DESCRIPTION fuser lists the process IDs of the processes using the files specified as arguments. For block special devices, it lists all processes using any file on that device. The process ID is followed by c, p or r if the process is using the file as its current directory, the parent of its current directory (only when in use by the system), or its root directory, respectively. - cancel any flag options currently in force before specifying a new group of files. -k send the SIGKILL signal to each process. Only the su- peruser can terminate another user's process (see kill(2)). -n specify an alternate namelist (/unix is the default). -u the login name, in parentheses, also follows the pro- cess ID. You can respecify options between groups of files. The new set of flag options replaces the old set. 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. EXAMPLE fuser -ku /dev/dsk/c1d0s0 allow the superuser to terminate all processes prevent- ing disk drive one from being unmounted. List the pro- cess ID and login name of each as it is killed. fuser -u /etc/passwd list process IDs and login names of processes that have the password file open. fuser -ku /dev/dsk/c1d0s0 -u /etc/passwd will do both of the above examples in a single command line. FILES /etc/fuser /unix for namelist /dev/kmem for system image April, 1990 1
fuser(1M) fuser(1M)/dev/mem also for system image /dev/swap for outswapped processes SEE ALSO ps(1), mount(1M), kill(2), signal(3). BUGS fuser cannot determine what processes are using files on re- motely mounted file systems. 2 April, 1990