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:
See the netstat man page for the complete syntax and all options.- 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
Example
The following sample command shows summary statistics for each protocol:
[root@system]# netstat -sWhere:
- -s
- shows summary statistics that includes the number of incoming and outgoing packages.