kill -9 $(lsof -t -i:8080)
sudo lsof -i tcp:80
#or
sudo lsof -t -i tcp:80 | sudo xargs kill
sudo kill -9 `sudo lsof -t -i:4000`
sudo kill -9 `sudo lsof -t -i:3000`
sudo kill -9 $(sudo lsof -t -i:8000)
sudo fuser -k 1883/tcp
#A One-liner to kill only LISTEN on specific port:
kill -9 $(lsof -t -i:3000 -sTCP:LISTEN)
$ fuser 8883/tcp // list
$ fuser -k 8883/tcp //kill
➜ ~ taskkill /PID <process_id> /F
sudo fuser -k 3000/tcp
kill -9 port_id
npx kill-port (port number)