Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fuser(1M) — HP-UX 8.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mount(1M)

ps(1)

kill(2)

signal(2)

privilege(5)

fuser(1M)

NAME

fuser, cfuser − list process IDs of all processes that have file open

SYNOPSIS

/etc/fuser [−ku] files [−] [[−ku] files]

/etc/cfuser [−ku] files [−] [[−ku] files]

DESCRIPTION

fuser lists the process IDs of the processes which have file open.  For block special devices, all processes using any file on that device are listed.  The process ID is followed by c if the process is using the file as its current directory or p if using the file as its root directory. 

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 users with appropriate privileges can terminate another user’s process (see kill(2)). Options can 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. 

In the HP Clustered environment, cfuser identifies processes running on any node in the HP Cluster using a file or file structure.  A separate report is produced for each member of the cluster.  Each report is preceded by the cluster member’s name. 

EXAMPLES

fuser −ku /dev/dsk/1s? 
if typed by a user with appropriate privileges, terminates all processes that are preventing disk drive 1 from being unmounted, listing the process ID and login name of each process being killed. 

fuser −u /etc/passwd
lists process IDs and login names of processes that have the password file open. 

fuser −ku /dev/dsk/1s? −u /etc/passwd
if typed by a user with appropriate privileges, combines both of the above examples into 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), privilege(5). 

STANDARDS CONFORMANCE

fuser: SVID2

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026