check ports in use

See ports in use:

sudo netstat -plnt

Filter the list:

sudo netstat -plnt | grep ':80'

Kill all proccess using a specific port, this will do so violently:

kill -9 $(lsof -t -i:5000)
Posted @ 2019-02-28 14:45