You are not logged in.
$ ONE_LINE_COMMAND
just to get the current download/upload speed, one line output, no need for fancy bars / refreshing blocks etc.
i've been using conky for a while, never wondered how to get the network RX/TX speeds without it. in conky it is so simple, just ${upspeed wlan0}
Anyone just tell me please !
This silver ladybug at line 28...
Offline
come up with something like this
$ echo $(echo $(echo -n `ifconfig wlan0 | grep 'RX bytes'|sed 's/.*:\([0-9]*\) (.*/\1/'`;echo -n "-";sleep 10;echo -n `ifconfig wlan0 | grep 'RX bytes'|sed 's/.*:\([0-9]*\) (.*/\1/'`;)|bc;echo -n '/(-10)')|bc
this is quite a stupid answer and outputs a 10-minute average speed in bytes/s, which i'm also not sure how accurate ..
This silver ladybug at line 28...
Offline
do you know vnstat?
Maybe can help
$ vnstat -tr | awk '$1 ~ /rx/ {print $2}'
320.14
You can especify the time of sample seconds in -tr parameter by default is 5
Offline
do you know vnstat?
Maybe can help
$ vnstat -tr | awk '$1 ~ /rx/ {print $2}' 320.14
You can especify the time of sample seconds in -tr parameter by default is 5
yay,looks nice!:D
though don't have a clue that it is doing inside.. isn't there a simpler and director way to do it?
This silver ladybug at line 28...
Offline