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 -plnt
The ss command (Socket Stat) is a modern replacement for netstat, providing more detailed information about network connections and sockets.
The options used here:
-p: Shows the PROCESS using the socket.
-l: Lists only LISTENING sockets.
-n: Shows NUMERICAL addresses instead of resolving hostnames.
-t: Filters for TCP sockets.
This command specifically shows processes that are listening on network ports, making it the most suitable choice for the task.
The command that would provide information about processes listening on network ports in a Linux server is:
A. ss -plnt
This command will list all listening TCP ports along with the process information. So, option A is the correct choice.
A. ss -plnt
Explanation:
The ss command in Linux is used to display detailed socket information, such as which processes are listening on which ports, among other things. The -p option displays the process ID and process name that are using the socket. The -l option displays only listening sockets. The -n option displays the port numbers in numerical form, and the -t option displays only TCP sockets.
C. netstat -pn - This command displays information about network connections, routing tables, and a variety of network statistics. The -p option shows the process ID and process name associated with each socket, but it may not work on all systems, and netstat itself has largely been deprecated in favor of newer utilities like ss.
upvoted 3 times
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
044f354
9 months, 3 weeks agoJoshuac1392
1 year, 2 months agobongobo
1 year, 3 months agolinux_admin
2 years, 4 months ago