Examples
$ listening -h
Usage: listening [t|tcp|u|udp] [ps regex]
$ listening statsd
Port - Protocol - Interface - Program
-----------------------------------------------
6060 - tcp - EXTERNAL - /usr/bin/statsdaemon
8125 - udp - EXTERNAL - /usr/bin/statsdaemon
8126 - tcp - EXTERNAL - /usr/bin/statsdaemon
$ listening tcp statsd
Port - Protocol - Interface - Program
-----------------------------------------------
6060 - tcp - EXTERNAL - /usr/bin/statsdaemon
8126 - tcp - EXTERNAL - /usr/bin/statsdaemon
$ listening u statsd
Port - Protocol - Interface - Program
-----------------------------------------------
8125 - udp - EXTERNAL - /usr/bin/statsdaemon
$ listening
Port - Protocol - Interface - Program
-----------------------------------------------
111 - tcp - EXTERNAL - rpcbind
111 - udp - EXTERNAL - rpcbind
668 - udp - EXTERNAL - rpcbind
774 - udp - LOCALHOST - rpc.statd -L
6258 - tcp - LOCALHOST - /usr/bin/wineserver
6263 - tcp - LOCALHOST - /usr/bin/wineserver
27017 - tcp - LOCALHOST - /usr/bin/mongod --config /etc/mongodb.conf
34941 - udp - EXTERNAL - /usr/sbin/rpc.mountd --manage-gids
40170 - tcp - EXTERNAL - /usr/sbin/rpc.mountd --manage-gids
41067 - udp - EXTERNAL - rpc.statd -L
47655 - tcp - EXTERNAL - rpc.statd -L
49396 - udp - EXTERNAL - /usr/sbin/rpc.mountd --manage-gids
51021 - tcp - LOCALHOST - /opt/google/talkplugin/GoogleTalkPlugin
52336 - tcp - EXTERNAL - /usr/sbin/rpc.mountd --manage-gids
53725 - tcp - LOCALHOST - /opt/google/talkplugin/GoogleTalkPlugin
58024 - udp - EXTERNAL - /usr/sbin/rpc.mountd --manage-gids
60589 - tcp - EXTERNAL - /usr/sbin/rpc.mountd --manage-gids