Answers for "how to kill all processes on all ports"

3

kill all processes holding a port

sudo kill -9 $(sudo lsof -t -i:9001)
Posted by: Guest on January-07-2021
0

kill all ports

kill PID
kill -s signalName PID
kill -signalName PID
kill -signalNumber PID

# get PID > run this command
sudo ss -tulpn | grep LISTEN

# Source
https://www.cyberciti.biz/faq/unix-kill-command-examples/
Posted by: Guest on June-05-2021

Code answers related to "how to kill all processes on all ports"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language