LX0-104 · Question #482
The following excerpt is from what standard network configuration file? ftp 21/tcp fsp 21/udp fspd ssh 22/tcp # SSH Remote Login Protocol ssh 22/udp telnet 23/tcp smtp 25/tcp mail time 37/tcp timserve
The correct answer is C. /etc/services. The provided excerpt lists network service names along with their corresponding port numbers and protocols.
Question
Options
- A/etc/hosts
- B/etc/inetd.conf
- C/etc/services
- D/etc/syslog.conf
How the community answered
(35 responses)- A6% (2)
- B3% (1)
- C91% (32)
Why each option
The provided excerpt lists network service names along with their corresponding port numbers and protocols.
/etc/hosts maps IP addresses to hostnames, not service names to ports.
/etc/inetd.conf configures network services that are started by the inetd or xinetd super-server, not just service-to-port mappings.
The /etc/services file is a standard configuration file that maps service names to the port numbers and protocols they use, often including aliases and comments, matching the excerpt's structure. This file is crucial for applications to identify which ports to use for specific services.
/etc/syslog.conf configures how system log messages are handled, specifying facilities, priorities, and destinations.
Concept tested: /etc/services file purpose
Source: https://man7.org/linux/man-pages/man5/services.5.html
Topics
Community Discussion
No community discussion yet for this question.