There are several tools and commands that can be used to view network statistics in Linux. Some of the most commonly used tools and commands are:
ifconfig
: This command displays information about the network interfaces on a Linux system, including the IP address, netmask, and MAC address. It can also be used to configure the network interfaces.
ip
: This command is a more advanced version of ifconfig
, and it can be used to view and configure network interfaces, routes, and addresses.
netstat
: This command displays information about network connections, including the protocol, local and remote addresses, and state. It can also be used to display information about network routing tables and interface statistics.
ethtool
: This command is used to view and configure the Ethernet settings of a network interface, such as the speed and duplex mode.
tcpdump
: This command is a packet analyzer that can be used to capture and display packets passing through a network interface. It can be used to diagnose network problems and monitor network traffic.
iperf
: This tool is used to measure the bandwidth and performance of a network connection. It can be used to test the speed of a network connection between two systems.
These are just a few of the many tools and commands that can be used to view network statistics in Linux. Depending on your needs, you may find that one or more of these tools is particularly useful for monitoring and troubleshooting your network.