XK0-005 · Question #147
An administrator needs to generate a list of services that are listening on TCP and/or UDP ports. Which of the following tools should the administrator use?
The correct answer is C. netstat. The administrator needs to identify active network services and their corresponding listening TCP/UDP ports.
Question
An administrator needs to generate a list of services that are listening on TCP and/or UDP ports. Which of the following tools should the administrator use?
Options
- Aethtool
- Broute
- Cnetstat
- Dportmap
How the community answered
(33 responses)- B3% (1)
- C94% (31)
- D3% (1)
Why each option
The administrator needs to identify active network services and their corresponding listening TCP/UDP ports.
`ethtool` is used to query or modify network interface controller (NIC) parameters, such as speed, duplex settings, and driver information, not for listing listening services.
The `route` command is used to display or manipulate the kernel's IP routing table, which dictates how network packets are forwarded, not for identifying listening services.
The `netstat` command is a comprehensive command-line tool that displays active network connections, routing tables, interface statistics, and crucially, all listening sockets (open ports) for both TCP and UDP protocols, making it ideal for this task.
`portmap` (or `rpcbind`) is a service that maps RPC program numbers to network port numbers for RPC-based services, but it does not list all services listening on TCP/UDP ports across the system.
Concept tested: Listing listening network services and ports
Source: https://www.redhat.com/sysadmin/monitor-network-linux-netstat
Topics
Community Discussion
No community discussion yet for this question.