exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 167 discussion

Actual exam question from CompTIA's XK0-005
Question #: 167
Topic #: 1
[All XK0-005 Questions]

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
  • B. tcpdump -nL
  • C. netstat -pn
  • D. lsof -lt
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
044f354
9 months, 3 weeks ago
Selected Answer: A
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.
upvoted 4 times
...
Joshuac1392
1 year, 2 months ago
Selected Answer: A
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.
upvoted 1 times
...
bongobo
1 year, 3 months ago
I use: nmap localhost
upvoted 1 times
...
linux_admin
2 years, 4 months ago
Selected Answer: A
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
...
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.

SaveCancel
Loading ...