Chapter 19. Managing System Processes (Tasks)

Table of Contents

Managing System Processes (Task Map)
Commands for Managing System Processes
Using the ps Command
Using the /proc File System and Commands
Managing Processes With Process Commands (/proc)
Terminating a Process (pkill, kill)
Debugging a Process (pargs, preap)
Managing Process Class Information (Task Map)
Managing Process Class Information
Changing the Scheduling Priority of Processes (priocntl)
Changing the Priority of a Timesharing Process (nice)
Troubleshooting Problems With System Processes

Managing System Processes (Task Map)

Task

Description

For Instructions

List processes.

Use the ps command to list all the processes on a system.

How to List Processes

Display information about processes.

Use the pgrep command to obtain the process IDs for processes that you want to display more information about.

How to Display Information About Processes

Control processes.

Locate processes by using the pgrep command. Then, use the appropriate pcommand (/proc) to control the process. See Table 19–3 for a description of the (/proc) commands.

How to Control Processes

Kill a process.

Locate a process, either by process name or process ID. You can use either the pkill or kill commands to terminate the process.

How to Terminate a Process (pkill)

How to Terminate a Process (kill)