CompTIA Linux+ (XK0-004) — Question 251

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?

Answer options

Correct answer: C

Explanation

The correct answer is netstat, as it is specifically designed to display network connections, routing tables, and interface statistics, which includes services listening on ports. ethtool is used for querying and controlling network device driver and hardware settings, route is for viewing and manipulating the IP routing table, and portmap is related to RPC services, making them unsuitable for this task.