The netstat command
Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships 1 example from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Examples
netstat -tlnpOlder equivalent