Netstat is a command line utility that can be used to list out all the network connections on a system. It lists out all the tcp, udp socket connections and the unix socket connections. Netstat??also displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc.
In this guide, we will see how to use this tool to gather information about network connections and open ports on a system.