Slide 46
Slide 46 text
# Recommended (listening, tcp, udp, program, numeric)
$ netstat –ltupn
# List sockets in listening state
$ netstat –-listening|-l
# Filter by protocol (TCP, UDP, RawSocket)
$ netstat –-tcp|-t, --udp|-u, --raw|-w
# Use numeric address instead of hostname
$ netstat --numeric|-n
# List all ports
$ netstat --all|–a
$ netstat -a | grep ESTAB | wc –l
# Show process
$ netstat --program|–p
# Continuously update results
$ netstat --continuous|–c