Courseiva
TroubleshootingeasyMultiple ChoiceObjective-mapped

XK0-006 Troubleshooting Practice Question

A Linux administrator needs to check which services are listening on TCP port 22. Which command should be used?

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

ss -tlnp | grep :22

The 'ss -tlnp' command shows listening TCP sockets with process information, making it suitable for checking services on port 22.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ss -tlnp | grep :22

    Why this is correct

    ss -tlnp shows listening TCP ports with process info; grep filters for port 22.

  • ping -p 22 localhost

    Why it's wrong here

    ping does not show listening ports.

  • ip addr show port 22

    Why it's wrong here

    ip addr shows IP addresses, not ports.

  • traceroute -p 22 localhost

    Why it's wrong here

    traceroute is for path discovery, not port listening.

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 →

How Courseiva writes practice questions · Editorial policy

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.