Mustafa CavusogluMC

Command Palette

Search for a command to run...

AboutExperiencesProjects
Linux3Docker3Git3uv1Miniconda1Kubernetes3
Back to Home
Linux

Monitor and control running processes

processespstopkill

Linux Process Management

Commands for monitoring and controlling system processes.

Viewing Processes

# List all processes
ps aux

# Interactive process viewer
top

# Better alternative to top
htop

# Tree view of processes
pstree

# Find process by name
pgrep nginx
ps aux | grep nginx

Managing Processes

# Kill process by PID
kill 1234

# Force kill
kill -9 1234

# Kill by name
pkill nginx
killall nginx

# Run in background
command &

# Bring to foreground
fg

# List background jobs
jobs

System Resources

# Memory usage
free -h

# Disk usage
df -h

# Directory size
du -sh /path/to/dir

# System uptime
uptime

# Who is logged in
who
w