nerdexam
CompTIA

XK0-005 · Question #400

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…

The correct answer is A. ss -pint. 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…

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

How the community answered

(28 responses)
  • A
    89% (25)
  • B
    7% (2)
  • C
    4% (1)

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.

Topics

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

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice