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