korhan-Ö
11/5/2016 - 6:21 PM

#Netstats commands.bash

1. List out all connections
netstat -a

2. List only TCP or UDP connections
netstat -at

3. Disable reverse dns lookup for faster output
netstat -ant

4. List out only listening connections
netstat -tnl

5. Get process name/pid and user id
sudo netstat -nlpt
sudo netstat -ltpe

6. Print statistics
netstat -s

7. Display kernel routing information
netstat -rn

8. Print network interfaces
netstat -i
netstat -ie

9. Get netstat output continuously
netstat -ct

10. Display multicast group information
netstat -g

netstat -atnp | grep ESTA
watch -d -n0 "netstat -atnp | grep ESTA"
sudo netstat -aple | grep ntp