netstat
List all listening connections
netstat -l
List all listening connections with numeric port numbers
netstat -l -n
List all connections
netstat -a
List used ports
netstat -tupln
netstat
netstat -l
netstat -l -n
netstat -a
netstat -tupln