Skip to main content

htop/ps — Process Management Tools

Linux process management is an essential skill for all ops and developers. This cheatsheet covers everything from basic `ps` viewing to advanced `strace` syscall tracing, along with `htop` real-time monitoring, signal sending, priority adjustment, and more.

Updated: 2026-07-17·31 commands

Overview

Process management is a fundamental skill for Linux system administration. This cheatsheet covers process monitoring, signal handling, priority management, and real-time system monitoring.

Quick Start

``bash ps aux | grep nginx # Find nginx processes top # Interactive process viewer kill -15 PID # Gracefully terminate a process ``

Refer to the command table below for detailed usage.

Process View(8)

CommandLevel
ps aux
Show all processes for all users (BSD style)
Basic
ps -ef
Show all processes (System V style)
Basic
ps -u
Show processes for a specific user
Basic
ps --forest
Display process hierarchy as a tree
Intermediate
pstree
Display processes as a tree diagram
Basic
pgrep
Look up process IDs by name
Intermediate
lsof
List open files and network connections by process
Intermediate
w
Show who is logged on and what they are doing
Basic

Monitoring(9)

CommandLevel
top
Display real-time process activity (sorted by CPU by default)
Basic
htop
Enhanced real-time process monitor
Basic
screen
Terminal multiplexer (persists sessions)
Intermediate
strace
Trace system calls and signals
Expert
watch
Periodically execute a command
Basic
uptime
Show system uptime and load averages
Basic
free
Display system memory usage
Basic
vmstat
Report virtual memory statistics
Intermediate
iostat
Report input/output statistics
Intermediate

Signals(10)

CommandLevel
kill
Send a signal to a process
Basic
killall
Kill all processes matching a name
Intermediate
pkill
Match by name or attribute and send signal
Intermediate
kill -l
List all available signal names
Intermediate
nohup
Run a process immune to hangups
Intermediate
disown
Remove a job from the shell's job table
Intermediate
bg
Resume a suspended job in the background
Basic
fg
Bring a background job to the foreground
Basic
jobs
List background jobs of the current shell
Basic
timeout
Run a command with a time limit
Intermediate

Priority(4)

CommandLevel
nice
Start a process with a specified priority
Intermediate
renice
Change the priority of a running process
Intermediate
taskset
Set or retrieve a process's CPU affinity
Expert
ionice
Set or retrieve I/O scheduling priority
Expert

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-17.