FUSER(1M) — HP-UX
Series 300, 800 Only
NAME
fuser − identify processes using a file or file structure
SYNOPSIS
/etc/fuser [−ku] files [−] [[−ku] files]
DESCRIPTION
Fuser lists the process IDs of the processes using the files specified as arguments. For block special devices, all processes using any file on that device are listed. 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. If the −u option is specified, the login name, in parentheses, also follows the process ID. In addition, if the −k option is specified, the SIGKILL signal is sent to each process. Only the super-user can terminate another user’s process (see kill(2)). Options may be respecified between groups of files. The new set of options replaces the old set, with a lone dash canceling any 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.
EXAMPLES
fuser −ku /dev/dsk/1s?
will terminate all processes that are preventing disk drive one from being unmounted if typed by the super-user, listing the process ID and login name of each as it is killed.
fuser −u /etc/passwd
will list process IDs and login names of processes that have the password file open.
fuser −ku /dev/dsk/1s? −u /etc/passwd
will do both of the above examples in a single command line.
FILES
| /dev/kmem | for system image |
| /dev/mem | also for system image |
| /hp-ux | for namelist |
SEE ALSO
mount(1M), ps(1), kill(2), signal(2).
Hewlett-Packard Company — Version B.1, May 11, 2021