102-500 · Question #103
Which of the following commands display the number of bytes transmitted and received via the eth0 network interface? (Choose two.)
The correct answer is C. netstat -s -i eth0 D. ifconfig eth0. Commands ifconfig eth0 (D) and netstat -s -i eth0 (C) both surface byte-level statistics for a specific interface: ifconfig eth0 prints "RX bytes" and "TX bytes" directly in its output, while netstat -s -i eth0 combines per-interface statistics (-i) with summary byte counts…
Question
Options
- Aroute -v via eth0
- Bip stats show dev eth0
- Cnetstat -s -i eth0
- Difconfig eth0
- Eip -s link show eth0
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- C81% (21)
- E12% (3)
Explanation
Commands ifconfig eth0 (D) and netstat -s -i eth0 (C) both surface byte-level statistics for a specific interface: ifconfig eth0 prints "RX bytes" and "TX bytes" directly in its output, while netstat -s -i eth0 combines per-interface statistics (-i) with summary byte counts (-s). The distractors fail for distinct reasons: A (route -v via eth0) queries the routing table, not interface counters; B (ip stats show dev eth0) is invalid syntax - the correct form is ip -s link show dev eth0; and E (ip -s link show eth0) is a common trap because it does show byte stats, but the command is missing the dev keyword, making it syntactically incorrect on most systems. A handy memory tip: think "Interface Facts = ifconfig" for byte stats, and remember that netstat -i needs -s to go from packet counts to byte counts - i alone isn't enough.
Topics
Community Discussion
No community discussion yet for this question.