nerdexam
CompTIA

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.

Networking Fundamentals

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

(35 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    91% (32)

Why each option

The provided excerpt lists network service names along with their corresponding port numbers and protocols.

A/etc/hosts

/etc/hosts maps IP addresses to hostnames, not service names to ports.

B/etc/inetd.conf

/etc/inetd.conf configures network services that are started by the inetd or xinetd super-server, not just service-to-port mappings.

C/etc/servicesCorrect

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.

D/etc/syslog.conf

/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

#/etc/services#network ports#network services

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice