Measure network bandwidth
This commit is contained in:
9
bin/network-bandwidth
Executable file
9
bin/network-bandwidth
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# https://www.binarytides.com/linux-commands-monitor-network/
|
||||
# https://www.cyberciti.biz/faq/linux-list-network-interfaces-names-command/
|
||||
|
||||
ACTIVE_IFACE=$(ip -4 route ls | grep default | grep -Po '(?<=dev )(\S+)')
|
||||
WIFI_IFACE=$(nmcli device status | awk '$2~/^wifi$/ {print $1}')
|
||||
|
||||
nload $ACTIVE_IFACE
|
||||
Reference in New Issue
Block a user