nerdexam
Linux_Foundation

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.

Submitted by ravi_2018· Apr 18, 2026Networking

Question

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 timserver time 37/udp timserver rlp 39/udp resource # resource location nameserver 42/tcp name # IEN 116 whois 43/tcp nicname

Options

  • A/etc/hosts
  • B/etc/inetd.conf
  • C/etc/services
  • D/etc/syslog.conf

How the community answered

(17 responses)
  • A
    6% (1)
  • C
    88% (15)
  • D
    6% (1)

Why each option

The provided excerpt, listing service names, port numbers, and associated protocols, is characteristic of the `/etc/services` file.

A/etc/hosts

The `/etc/hosts` file maps IP addresses to hostnames, which is a different format and purpose from the excerpt.

B/etc/inetd.conf

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.

C/etc/servicesCorrect

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.

D/etc/syslog.conf

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

#Network services#Port mapping#Configuration files

Community Discussion

No community discussion yet for this question.

Full LFCS Practice