The netstat command symbolically displays the contents of various network-related data structures. There are a number of output formats, depending on the options for the information presented.