Network Troubleshooting

Which command-line tool displays packets live as they cross a network interface on a Linux system?

Show the answer

Correct answerC. tcpdump

AWhy not this: arp shows or edits the IP-to-MAC cache; it does not capture packets.

BWhy not this: nslookup sends DNS queries and shows the answers; it does not capture traffic.

CWhy this is right: tcpdump captures packets from an interface and prints their headers in the terminal as they arrive.

DWhy not this: netstat lists connections, listening ports and statistics; it never captures or shows packets.

tcpdump is a command-line packet capture tool that prints packets seen on an interface. netstat only reports connections, ports and statistics for the local host and does not capture packets.