diff --git a/linux-port.sh b/linux-port.sh index 502aaeb..f83e137 100644 --- a/linux-port.sh +++ b/linux-port.sh @@ -1,4 +1,4 @@ echo "=== 需要查看的端口号:" read -p ">>> " PORT -netstat -tunlp |rep $PORT +netstat -tunlp | grep $PORT