linux end process by port code example Example: kill process linux using port sudo kill -9 $(sudo lsof -t -i:8000)