Using the netstat command Edit online The netstat command displays the contents of various network-related data structures for active connections.