Process Management

Command
Description
Example

ps

Display active processes.

ps → Lists currently running processes for the current user.

top

Real-time process monitoring.

top → Displays an interactive view of processes with resource usage.

kill [PID]

Terminate a process by PID.

kill 1234 → Kills the process with PID 1234.

killall [name]

Terminate processes by name.

killall chrome → Stops all processes named chrome.

bg

Resume a process in the background.

bg → Resumes the last suspended process in the background.

fg

Resume a process in the foreground.

fg → Brings the last backgrounded job to the foreground.

jobs

List background jobs.

jobs → Displays all processes running in the background.

Last updated