Table of Contents

This article is Part 3 in a series of cheat-sheets on the command line shell, bash. (Previous Page | Next Page)

bash: Managing Processes

Show Processes

$ ps

Show running processes for user. Some options include:

Show user's processes running in background mode:

$ jobs -l

Use the command htop for real-time process info. (Which is similar to the Task Manager if you're coming from Windows.) btop is a another useful process manager.

Moving, Starting and Stopping Processes

Move background process x to foreground:

$ fg x

Start running process x in background:

$ bg x

kill

$ kill pid

Sends TERM signal to specified PID (Process ID). Some options include:

Process Signals

Process States

PS Columns

Top Columns