netstat (network statistics) - Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
Type the following command:
$netstat
Listening on all ports
$netstat -a
OPTIONS
-l, --listening
Show only listening sockets. (These are omitted by default.)
$netstat -i