--- netstat commnds ---
### List all netstat options
netstat -h
### Display PID
add -p
### Print netstat Info Continuously
add -c
===========================================
ps -ef |erep netstat -anp | egrep '8592|8591|8343' | egrep ESTABLISHED | awk '{print $7}' | egrep -v 'java|httpd' | cut -d/ -f1 |awk '{print "ps -ef | egrep "$1}' | sh | egrep -v ^root
netstat -tupan | egrep -i LISTEN | awk '{print $4" "$7}' | egrep ":[7,8][0-9]" | egrep -v httpd | sort -u
#### Port in use
netstat -tulpn
#### List all ports
netstat -a
#### List all TCP ports
netstat -at
### that are LISTENING
netstat -lt
#### List all UDP ports
netstat -au
### that are LISTENING
netstat -lu
#### List all LISTENING ports
netstat -l
#### List all UNIX LISTENING ports
netstat -lx
### Display Statistics by Protocol
netstat -s
### List Statistics for TCP Ports
netstat -st
### List Statistics for UDP Ports
netstat -su
### List Network Interface Transactions
netstat -i
### Display Extended Kernel Interface Table
netstat -ie
### Display Masqueraded Connections
netstat -M
### Find Listening Programs
netstat -lp
### Display Kernel IP Routing Table
netstat -r
### Display IPv4 and IPv6 Group Membership
netstat -g
### Display Numerical Addresses
netstat -n
### Display Numerical Host Addresses
netstat --numeric-hosts
### Display Numerical Port Numbers
netstat --numeric-ports
### Display Numerical User Ids
netstat --numeric-users
### Find a Process That Is Using a Particular Port
netstat -an | grep ':[port number]'