PrepAway - Latest Free Exam Questions & Answers

Which file maps TCP and UDP ports to common resources?

The __________ file maps TCP and UDP ports to common resources.

PrepAway - Latest Free Exam Questions & Answers

Answer: /etc/services

Explanation/Reference:
From the man pages:
/etc/services is a plain ASCII file providing a mapping between human-friendly textual names for internet services, and their underlying assigned port numbers and protocol types. Every networking program should look into this file to get the port number (and protocol) for its service. The C library routines getservent(3), getservbyname(3), getservbyport(3), setservent(3), and endservent(3) support querying this file from programs.


Leave a Reply