Go to main content

Managing System Information, Processes, and Performance in Oracle® Solaris 11.4

Exit Print View

Updated: April 2019
 
 

Using the /proc File System and Commands

You can display detailed information about the processes that are listed in the /proc directory by using process commands. The following table lists the /proc process commands. The /proc directory is also known as the process file system (PROCFS). Images of active processes are stored in the PROCFS by their process ID number.

Table 4  Process Commands (/proc)
Process Command
Description
pcred
Displays process credential information
pfiles
Reports fstat and fcntl information for open files in a process
pflags
Displays /proc tracing flags, pending signals and held signals, and other status information
pldd
Lists the dynamic libraries that are linked into a process
pmap
Displays the address space map of each process
psig
Lists the signal actions and handlers of each process
prun
Starts each process
pstack
Displays a hex+symbolic stack trace for each lightweight process in each process
pstop
Stops each process
ptime
Times a process by using microstate accounting
ptree
Displays the process trees that contain the process
pwait
Displays status information after a process terminates
pwdx
Displays the current working directory for a process

For more information, see the proc(1) man page.

The process tools are similar to some options of the ps command, except that the output that is provided by these commands is more detailed.

    The process commands perform the following tasks:

  • Display more information about processes, such as fstat and fcntl, working directories, and trees of parent and child processes

  • Provide control over processes by allowing users to stop or resume them

The pfiles, pldd, and pstack commands stop target processes to inspect and extract information. In Oracle Solaris 11.4, the pfiles command supports two new options through which you can control how information is extracted from a process. These options are as follows:

–S

Stops the process to get a consistent snapshot of the information

–L

Enables live mode for pfiles where the process is examined without being stopped. Since the process is not stopped, the consistency of the list of file descriptors listed is not guaranteed

For more information, see the proc(1) man page.