Linux: Check all open TCP connections

The following command will list all the open tcp and udp connections

netstat -anp --tcp --udp