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 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.
|-a||Displays all processes except process group leaders and processes not associated with terminals|
|-A||Displays all processes (identical ...|