Linux: Process Management Cheat Sheet

# Show your currently running processes


# Show all the currently running processes on the system.

ps -ef

# Show process information for processname

ps -ef | grep processname

# Show real time processes


# Interactive process viewer (top alternative)


# 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


# Brings the most recent background job to foreground


# Brings job n to the foreground

fg n

Leave a Reply

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