Veera's Web Site
Search Website

Atom Feed
Linux Penguin Logo - Linux network statistics program: shell script

Date: 15-09-2023 10:30 UTC is a shell (bash) script to get info about a network device's received and transmitted data. It shows current network speed in bytes/second, packets/second and total bytes got/sent since program started. It shows for both got and sent data. Data is represented in Byte/KiloByte/MegaByte/GigaByte/TeraByte and Packet.

Download the shell script and use it to get a network device stats.

After downloading, make it executable: chmod +x
And run it for either ethernet (eth0) or wireless net(wlan0) or any other network device: ./ eth0
./ wlan0
Copy it to $HOME/bin or /usr/local/bin or any other $PATH location.