Drag a concept onto its matching description — or click a concept then click the description.
Show/manipulate routing, devices, tunnels
Investigate sockets
Manage NetworkManager
Capture network packets
Network exploration/security scanning
Match each Linux networking command to its purpose.
Drag a concept onto its matching description — or click a concept then click the description.
Show/manipulate routing, devices, tunnels
Investigate sockets
Manage NetworkManager
Capture network packets
Network exploration/security scanning
Answer choices
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
ping: Tests network connectivity to a remote host
Ping tests connectivity, netstat shows network statistics, ifconfig configures interfaces, nslookup performs DNS queries. Traceroute traces paths, and system IP is better shown by ifconfig or hostname -I.
Answer analysis
For each option: why learners choose it and why it is or isn't the right answer here.
ping: Tests network connectivity to a remote host
Why this is correct
ping sends ICMP echo requests to verify reachability and measure round-trip time.
netstat: Displays network connections, routing tables, and interface statistics
Why this is correct
netstat provides information about active network connections and network protocols.
ifconfig: Configures or displays network interface parameters
Why this is correct
ifconfig is used to assign IP addresses, netmasks, and other interface settings.
nslookup: Queries DNS servers for hostname or IP address information
Why this is correct
nslookup resolves domain names to IP addresses and vice versa.
ping: Used to trace the route packets take to a destination
Why it's wrong here
This describes traceroute, not ping.
netstat: Used to display the IP address of the system
Why it's wrong here
While netstat can show interface IPs, its primary purpose is broader; ifconfig or hostname -I is more direct.
Go deeper
Learn chapter
Linux Fundamentals and History
Key term
DNS
DNS is the system that translates human-friendly domain names like example.com into machine-readable IP addresses so computers can find each other on a network.
Key term
Linux
Linux is an open-source operating system that manages computer hardware and software, widely used in servers, desktops, and embedded systems.
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 →
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.