Linux: Process Management Cheat Sheet

# Show your currently running processes

ps

# Show all the currently running processes on the system.

ps -ef

# Show process information for processname

ps -ef | grep processname

# Show real time processes

top

# Interactive process viewer (top alternative)

htop

# Kill process with id pid

kill pid

# Kill all processes named processname

killall processname

# Kill process with name processname

pkill processname

# Start program in the background

program &

# Display stopped or background jobs

bg

# Brings the most recent background job to foreground

fg

# Brings job n to the foreground

fg n

Leave a Reply

Your email address will not be published. Required fields are marked *