netstat has some very neat features we could make use of more often! Here is 5.
Note: examples here may not apply to BSD based systems
1. The classic: list local listening TCP/UDP ports and their process:
$ sudo netstat -tulpn2. Get a tail -f behaviour with:
$ sudo netstat -c3. Show network transactions:
# including RX/TX and MTU
$ sudo netstat -i4. Display the routing table:
$ sudo netstat -r5. Show statistics by protocol:
$ sudo netstat -s