CompTIA Linux+ Powered by LPI (LX0-104) — Question 39

Which of the following files is consulted when programs like netstat try to match port numbers to names?

Answer options

Correct answer: E

Explanation

The correct answer is /etc/services, as this file contains the mappings of port numbers to service names. The other options do not serve this purpose; for example, /etc/networks deals with network names, while /etc/protocols defines protocols, and /etc/resolv.conf is related to DNS resolution.