how to kill all ports in ubuntu code example Example: how to kill port in ubuntu sudo lsof -t -i:9001