|Lesson 6||Monitoring processes|
|Objective||Use the ps command and its arguments to monitor running processes on the system.|
pscommand. This command lists the running processes, together with useful information about their status.
pscommand by itself to get a brief list of processes owned by the user who invoked the command. Like
pscommand has myriad options. Lets look at two particularly useful ones.
ps aux. On Solaris and AIX, the corresponding command is
ps ef, and the output has a slightly different form. The relevant information is still there.
ps aj. using-ps-command Click the View MouseOver button to take a look at the output of the
ps aux, and
ps ajcommands. Notice how they differ and what type of information the output of each contains.
ps ajcommand output, you can obtain information about parent-child relationships. Parent process IDs are in the PPID column. This version of the
pscommand shows user ID numbers, not names, in the UID column. You can find your user ID number with the
whoamicommand will tell you the real user ID of your shell.
pscommands to monitor processes. Click the Start Simulation button to get started.