nerdexam
CompTIACompTIA

XK0-005 · Question #400

XK0-005 Question #400: Real Exam Question with Answer & Explanation

The correct answer is A: ss -pint. {"question_number": 7, "explanation": "ss is the modern replacement for netstat for displaying socket statistics. The flags -pint show: -p (process using the socket), -i (internal TCP information), -n (numeric addresses, no DNS resolution), -t (TCP sockets). This provides a compr

System Management

Question

A systems administrator is compiling a report containing information about processes that are listening on the network ports of a Linux server. Which of the following commands will allow the administrator to obtain the needed information?

Options

  • Ass -pint
  • Btcpdump -nL
  • Cnetstat -pn
  • Dlsof -lt

Explanation

{"question_number": 7, "explanation": "ss is the modern replacement for netstat for displaying socket statistics. The flags -pint show: -p (process using the socket), -i (internal TCP information), -n (numeric addresses, no DNS resolution), -t (TCP sockets). This provides a comprehensive view of listening and established connections with associated processes. tcpdump -nL captures live traffic, not a static port list. netstat -pn works but ss is preferred on modern systems. lsof -lt lists open files by type but is less targeted for network port reporting.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#ss command#Network ports#Process identification#Linux administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions