Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bytes Receive
- ifconfig eth0 | awk '/RX bytes/ {print $2}' | awk -F: '{print $2}'
- # Bytes Transmitted
- ifconfig eth0 | awk '/RX bytes/ {print $6}' | awk -F: '{print $2}'
- # A human readable output
- ifconfig eth0 | awk '/RX bytes/ {print $3, $4}' # Received
- ifconfig eth0 | awk '/RX bytes/ {print $7, $8}' # Transmitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement