fuser(1m) DG/UX 4.30 fuser(1m)
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 files.
Fuser does not identify processes on remote machines using
files through NFS. For block special devices, all processes
using any file on that device are listed. The process ids
are followed by c or r if the process is using the file as
its current directory or its root directory and a t if the
process is currently executing the file.
If you use the -u option, 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 superuser can terminate another user's process (see
kill(2)). Options may be re-specified between groups of
files. The new set of options replaces the old set; a
single dash (-) cancels 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
/etc/fuser -ku /dev/dsk/test
If typed by the superuser, terminates all processes
that are preventing the file system on the logical disk
named `test' from being unmounted and lists the process
IDs and login name of each process as it is killed.
/etc/fuser -u /etc/passwd
Lists process IDs and login names of processes that
have the password file open.
/etc/fuser -ku /dev/dsk/test -u /etc/passwd
Performs both of the first two examples in a single
command line.
SEE ALSO
mount(1m), ps(1), kill(2), signal(2), dg_file_info(2),
dg_process_info(2).
Licensed material--property of copyright holder(s) Page 1