kill process running on port 9001 linux code example Example: kill port ubuntu sudo kill -9 `sudo lsof -t -i:3002`