Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
File Format Reference Pages services(4)
NAME
services - Contains information about Internet services
DESCRIPTION
The /etc/services file contains information about services available through the Internet. A ser-
vice entry consists of a service name followed by a port number and protocol, and it can option-
ally contain aliases for the service. Each entry takes the following form:
service_name port/protocol aliases
The fields contain the following information:
service_name The official name for the service.
port/protocol The port number and protocol through which the service is pro-
vided, for example, 513/TCP.
aliases These are alternate names that can be used to request the ser-
vice.
Fields are separated by one or more space or tab characters. Comments begin
with the number sign (#). Routines that search the /etc/services file do not inter-
pret characters from the beginning of a comment to the end of the line. A host
name can contain any printable character except a field delimiter, newline char-
acter, or comment character (#).
EXAMPLES
Example lines from a services file are shown below:
echo 7/udp
smtp 25/tcp mail
RELATED INFORMATION
Commands: endservent(3), getservbyname(3), setservent(3).
Files: hosts(4), networks(4), protocols(4).
527188-007 Hewlett-Packard Company 11−39