LFCS · 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…
The correct answer is C. /etc/services. The provided excerpt, listing service names, port numbers, and associated protocols, is characteristic of the /etc/services file.
Question
Options
- A/etc/hosts
- B/etc/inetd.conf
- C/etc/services
- D/etc/syslog.conf
How the community answered
(17 responses)- A6% (1)
- C88% (15)
- D6% (1)
Why each option
The provided excerpt, listing service names, port numbers, and associated protocols, is characteristic of the `/etc/services` file.
The `/etc/hosts` file maps IP addresses to hostnames, which is a different format and purpose from the excerpt.
The `/etc/inetd.conf` file configures network services managed by the `inetd` superserver, defining how daemons are launched, which doesn't match the excerpt's format.
The `/etc/services` file is a standard network configuration file that maps human-readable service names (like ftp, ssh, telnet) to their corresponding port numbers and transport protocols (TCP or UDP). The excerpt clearly shows this exact mapping format.
The `/etc/syslog.conf` file configures system logging behavior and message routing, which has a completely different syntax and function.
Concept tested: /etc/services file purpose and format
Topics
Community Discussion
No community discussion yet for this question.