Which file on HP-UX contains a list of standard port numbers for different applications?
-
/etc/hosts
-
/etc/ports
-
/etc/services
-
/etc/protocols
C
Correct answer
Explanation
On HP-UX (and most Unix systems), /etc/services is the standard file that maps service names to port numbers and protocols. This file is used by network applications to resolve service names like 'http' or 'ssh' to their corresponding port numbers. /etc/hosts maps IP addresses to hostnames, /etc/protocols lists protocol numbers, and /etc/ports does not exist as a standard file. The services file is essential for network configuration and service name resolution.