HPUX fuser[1m]






 fuser(1M)                                                         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 processes that 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




 Hewlett-Packard Company            - 1 -     HP-UX Release 9.0: August 1992






 fuser(1M)                                                         fuser(1M)





      /hp-ux         for name list

 SEE ALSO
      mount(1M), ps(1), kill(2), signal(2).

 STANDARDS CONFORMANCE
      fuser: SVID2















































 Hewlett-Packard Company            - 2 -     HP-UX Release 9.0: August 1992