linux clear port forwarding code example Example: how to clear a port in linux kill -9 $(lsof -t -i:8080)