O'Reilly logo

Solaris™ 9 System Administrator Exam Cram™ 2 (Exams 310-014 and 310-015) by Darrell Ambro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required