XK0-006 Troubleshooting Practice Question
An administrator wants to capture network traffic on interface eth0, writing the output to a file for later analysis, without resolving hostnames. Which command accomplishes this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
tcpdump -i eth0 -w capture.pcap -n
tcpdump -i eth0 -w file.pcap -n captures packets without name resolution and writes to a file.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
tcpdump -i eth0 -r capture.pcap
Why it's wrong here
-r reads a file, not writes.
- ✓
tcpdump -i eth0 -w capture.pcap -n
Why this is correct
This captures on eth0, writes to a file, and disables name resolution.
- ✗
tcpdump -i any -w capture.pcap
Why it's wrong here
This captures on all interfaces, but does not specify -n.
- ✗
tcpdump -n -w eth0 capture.pcap
Why it's wrong here
The syntax is wrong; -w expects a filename, not an interface.
Visual reference
Go deeper
Related to this question
About these practice questions
This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.