kill pid of a running port ubuntu code example Example: ubuntu kill process on a port sudo kill -9 $(sudo lsof -t -i:4000)