netstat - Show information about the Linux networking subsystem

The netstat command shows information about the Linux™ networking subsystem.
Note: The netstat command is deprecated for SUSE Linux Enterprise Server 15 and later. Use sockets statistics instead, see ss - Display sockets statistics.
In particular netstat shows:
  • Summary information of each protocol
  • Detailed information about each connection and interface statistics
  • Various error states, for example TCP segments retransmitted
  • Information about routing tables
See the netstat man page for the complete syntax and all options.

Example

The following sample command shows summary statistics for each protocol:
[root@system]# netstat -s 
Where:
-s
shows summary statistics that includes the number of incoming and outgoing packages.