centos kill process on specific port code example Example: kill process linux using port sudo kill -9 $(sudo lsof -t -i:8000)