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