Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-006 Exam - Topic 3 Question 10 Discussion

Posted by Honey on Jun 01, 2026 at 05:17 PM

A systems administrator troubleshoots a connectivity issue and needs to determine whether port 449 is open locally. Which of the following commands should the administrator use?

Suggested Answer: D

In Linux troubleshooting, identifying which ports are listening for connections is a foundational skill. According to CompTIA Linux+ V8, the ss (socket statistics) utility is the modern replacement for the older netstat command. It is used to dump socket statistics and provides information similar to netstat, but it is faster and can display more detailed TCP and state information.

To check if a specific port (like 449) is open locally, the administrator would run ss -an | grep 449.

-a: Displays both listening and non-listening (for established connections) sockets.

-n: Shows numerical port numbers instead of attempting to resolve them to service names (e.g., showing 443 instead of https).

| grep 449: Filters the output to show only lines containing the desired port number.

If the output shows a line with the state LISTEN on port *:449 or 127.0.0.1:449, the service is successfully running and bound to that port.

The other options are incorrect for the following reasons: ip link (Option A) is used to manage network interfaces (layer 2) and does not show port information (layer 4). dig (Option B) is a DNS lookup tool and cannot check port status. tracepath (Option C) is used to trace the network path to a host and detect MTU issues; it does not report on the state of specific local ports.

Therefore, ss is the verified tool for this troubleshooting task.


Get Premium XK0-006 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
17 comments · newest first
DI
Dion 23 days ago
It's nice to see a clear question like this. D is solid.
KE
Keva 28 days ago
I remember using "ss" for similar issues. Good call!
KE
Keneth 1 month ago
I like how straightforward it is. Definitely D!
FI
Fidelia 1 month ago
I was unsure at first, but D makes the most sense.
BO
Bo 1 month ago
Yeah, other options don't really check for open ports.
LA
Laticia 2 months ago
I feel confident about this question. D is the best choice.
MI
Michel 2 months ago
Agreed! "ss -an" is perfect for this.
LA
Lashon 2 months ago
I think the answer is D. It checks for open ports.
IR
Ira 2 months ago
D is correct, but I still prefer using netstat for this kind of check.
RE
Rebecka 2 months ago
Wait, why would you use grep with ss? Seems odd.
GE
Geraldo 2 months ago
I thought it was supposed to be netstat, not ss?
ME
Mendy 3 months ago
Definitely D! That's the right way to check for open ports.
AL
Alton 3 months ago
The command to check open ports is usually ss or netstat.
EV
Eveline 3 months ago
I think "tracepath" is used for tracing routes, so it doesn't seem right for checking port status.
FR
Francis 3 months ago
I feel like "dig" is more for DNS lookups, so it probably wouldn't help with checking if a port is open.
TO
Tommy 3 months ago
I remember practicing with "ss -an" in a lab, but I can't recall if I need to add something after it for a specific port.
TH
Thurman 4 months ago
I think the command to check open ports is something like "ss" or "netstat," but I'm not sure about the exact syntax.
0/2000 characters

Save Cancel