This commit is contained in:
neil 2016-03-23 22:41:24 +08:00
parent edf08da6f3
commit 14165e5a9b

2
le.sh
View File

@ -194,7 +194,7 @@ _ss() {
#for windows version netstat tool
netstat -anb -p tcp | grep "LISTENING" | grep :$_port" "
else
if netstat -help 2>&1 | grep "-p protocol" >/dev/null ; then
if netstat -help 2>&1 | grep "\-p protocol" >/dev/null ; then
netstat -an -p tcp | grep LISTEN | grep :$_port" "
else
netstat -ntpl | grep :$_port" "