Added showports

This commit is contained in:
2024-07-07 14:49:16 +01:00
parent fab73a6780
commit 360b9ef4c1

12
bin/showports Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
if [ "$1" == "-h" ] ; then
echo "$0 [port]"
exit 1
fi
if [ "$1" != "" ] ; then
FILT="-iTCP:$1"
else
FILT="-iTCP"
fi
lsof -nP $FILT | grep LISTEN