kill 8000 port with sudo password code example Example: ubuntu stop process on port sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`