Viewing and Terminating Processes

The ps(1), prstat(1M), and pgrep(1) commands are used to view attributes of processes, whereas the kill(1) and pkill(1) commands are used to terminate processes. The following sections discuss each of these commands.

The ps Command

The ps command is used to display information about active processes. Without any command-line arguments, the ps command displays processes that have the same effective user ID (UID) of the user account that executed the command. Table 5.1 lists the command-line arguments supported by the ps command.

Table 5.1. The ps Command-Line Arguments
ArgumentDescription
-aDisplays all processes except process group leaders and processes not associated with terminals
-ADisplays all processes (identical ...

Get Solaris™ 9 System Administrator Exam Cram™ 2 (Exams 310-014 and 310-015) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.