View processes with ps aux or top. Kill gracefully with kill PID or forcefully with kill -9 PID. pgrep nginx finds processes by name. htop gives an interactive coloured view with easy killing and sorting.
Managing Processes
ps aux # all running processes
top # live process monitor
htop # better top (install first)
kill 1234 # send SIGTERM
kill -9 1234 # force kill (SIGKILL)
pkill nginx # kill by name
killall nginx
jobs # background jobs
bg %1 # resume in background
fg %1 # bring to foreground
nohup command & # run after logout