XK0-006 Troubleshooting Practice Question
Which command shows the IP address, link status, and other configuration details for all network interfaces on a Linux system?
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
✓
ip addr
ip addr shows IP addresses and link information for all interfaces.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
nmcli dev status
Why it's wrong here
nmcli dev status shows device status but not full IP config.
- ✗
cat /etc/network/interfaces
Why it's wrong here
Shows configuration file, not current state.
- ✓
ip addr
Why this is correct
Correct: ip addr displays interface configuration.
- ✗
ifconfig -a
Why it's wrong here
The `ifconfig -a` command displays IP addresses, link status, and configuration for all interfaces, but it is deprecated in modern Linux distributions and does not show the same level of detail for virtual or advanced network namespaces as `ip addr show`. It is tempting because `ifconfig` was historically the standard tool for this task, and it would be correct on older systems where `iproute2` is not installed.
Go deeper
Related to this question
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.