The same jobs, without remembering which flags lsof needs or piping PIDs into kill.
What's on port 3000?lsof -i :3000 -P -nproc on :3000
Why is it there?lsof -i :3000, then ps -o ppid= up the chainproc why :3000
Free the portlsof -t -i:3000 | xargs kill && sleep 1 && lsof -i:3000proc free :3000
Wait for it to exitwhile ps aux | grep node | grep -v grep; do sleep 5; doneproc wait node
Pause a processkill -STOP $(pgrep node)proc freeze node
Find leftoversNo standard toolproc orphans --in .