arpak
arpak

Reputation: 133

linux print just Outgoing bandwidth

i want to get just the outgoing bandwidth example "343 MBit/s"

so i want a command to get just this example: "343 MBit/s"

so it can be

nload

or iftop command

example:

 rates:    270Mb   244Mb   283Mb

Upvotes: 0

Views: 102

Answers (1)

arpak
arpak

Reputation: 133

iftop -t -s 1 -n -N 2>/dev/null | awk '/Total send rate:/ {print $6}'

this is command from which i get just example: 149Mb

Upvotes: 1

Related Questions