Home » mcq » Linux » What file contains the list of port numbers (and associated names) monitored by inetd? A. /etc/services B. /etc/nsorder C. /etc/nsswitch.conf/ D. /etc/hosts E. None of the above
/etc/services
/etc/nsorder
/etc/nsswitch.conf/
/etc/hosts E. None of the above
Answer is Wrong!
Answer is Right!
The correct answer is A. /etc/services.
/etc/services is a text file that contains a list of port numbers and their associated services. The file is used by the inetd daemon to determine which service to start when a connection is made to a particular port.
The file is formatted as follows:
port/protocol service name
For example, the following line in
11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/>
Subscribe on YouTube
the file indicates that port 80 is used by the HTTP service:
80/tcp http
The file is typically owned by root and has a mode of 644.
The following are the other options:
- B. /etc/nsorder: This file contains the order in which name servers are used to resolve hostnames.
- C. /etc/nsswitch.conf/: This file contains the configuration for the name service switch.
- D. /etc/hosts: This file contains a list of hostnames and their associated IP addresses.
- E. None of the above: This option is incorrect.