OpenBSD
# netstart -nat
FreeBSD
# sockstat -4 -l
# sockstat -c
# sockstat -c -4
# sockstat -c -4 | grep ssh
# sockstat -c -4 | grep 22
# sockstat -4 -l | grep :22
# netstat -a -n | grep LISTEN
# netstat -a | egrep 'LISTEN|Proto|Active'
# netstat -a | egrep 'Proto|LISTEN'
# lsof -i :22
Linux
# netstat -ntulp
# lsof -i
Posted by L3UNIX to L3UNIX's deck (2016-01-21 01:57)