rwxrob-dot/scripts/listening

10 lines
159 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/bin/sh
case "$PLATFORM" in
mac)
netstat -an -ptcp | grep LISTEN
lsof -i -P | grep -i "listen"
;;
*) netstat -tulpn |grep LISTEN ;;
esac