z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Listing process IDs of processes with open files

z/OS UNIX System Services User's Guide
SA23-2279-00

It is often helpful to know which processes have open files. This information can be provided with the fuser utility.

The fuser utility lists the process IDs of all processes on the local system that have one or more named files open.

The syntax of the command is as follows:

fuser [-cfku] file
file is the path name of the file for which information is to be returned, or, if the-c option is used, the path name of a file on the file system for which information is to be reported.
Option
Description
-c
Reports on all open files within the file system of which the specified file is a member.
-f
Reports on only the named files. This is the default for this command.
-k
Sends the SIGKILL signal to each local process. Note that only a superuser can terminate a process that belongs to another user.
-u
The user name associated with each process ID is written to standard error.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014