ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 172 - XK0-005 discussion

Report
Export

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?

A.
ss -pint
Answers
A.
ss -pint
B.
tcpdump -nL
Answers
B.
tcpdump -nL
C.
netstat -pn
Answers
C.
netstat -pn
D.
lsof -It
Answers
D.
lsof -It
Suggested answer: A

Explanation:

The command ss -pint will allow the administrator to obtain the needed information about processes that are listening on the network ports of a Linux server. The ss command is a tool for displaying socket statistics on Linux systems. Sockets are endpoints of network communication that allow processes to exchange data over the network. The ss command can show various information about the sockets, such as the state, address, port, protocol, and process. The -pint option specifies the filters and flags that the ss command should apply. The -p option shows the process name and ID that owns the socket. The -i option shows the internal information about the socket, such as the send and receive queue, the congestion window, and the retransmission timeout. The -n option shows the numerical address and port, instead of resolving the hostnames and service names. The -t option shows only the TCP sockets, which are the most common type of sockets used for network communication. The command ss -pint will display the socket statistics for the TCP sockets, along with the process name and ID, the numerical address and port, and the internal information. This will allow the administrator to obtain the needed information about processes that are listening on the network ports of a Linux server. This is the correct command to use to obtain the needed information. The other options are incorrect because they either do not show the socket statistics (tcpdump -nL or lsof -It) or do not show the process name and ID (netstat -pn). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12: Managing Network Connections, page 389.

asked 02/10/2024
Sergio Escobar
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first