nstats.sh - Linux network statistics program: shell script
Date: 15-09-2023 10:30 UTC
nstats.sh 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 nstats.sh and use it to get a network device stats.
After downloading, make it executable: chmod +x nstats.sh
And run it for either ethernet (eth0) or wireless net(wlan0) or any other network device: ./nstats.sh eth0
or
./nstats.sh wlan0
Copy it to $HOME/bin or /usr/local/bin or any other $PATH location.