ps aux # all processes
ps aux --sort=-%mem | head # biggest memory users
pgrep -a nginx # PIDs by name
top # live view (press q to quit); htop is friendlier
kill 1234 # polite request to stop (SIGTERM)
kill -9 1234 # force kill (SIGKILL): last resort
pkill -f 'python app.py' # by command line
killall nginx # by name
SIGTERM (15) lets a program clean up; SIGKILL (9) cannot be caught. kill -HUP often asks a daemon to reload its configuration. Run something detached from your session with nohup cmd & or, better, a systemd service or tmux.