Thursday, December 29, 2005
watch traffic linux
watch 'ip -s link show up | tail -6'
Use the watch command to continually loop over a given command.
Use the ip command with -s to get the statistics for TX and RX
TX is transmit
RX is recieve
Narrow the ip command down to only link interfaces that are active (up)
Pipe it through tail -6 because the first 6 lines are the loop back (lo)