SERVICES(5) BSD File Formats Manual SERVICES(5)NAME
services -- service name data base
DESCRIPTION
The services file contains information regarding the known services available in the DARPA Internet. For each service a single line should
be present with the following information:
official service name
port number
protocol name
aliases
Items are separated by any number of blanks and/or tab characters. The port number and protocol name are considered a single item; a ``/''
is used to separate the port and protocol (e.g. ``512/tcp''). A ``#'' indicates the beginning of a comment; subsequent characters up to the
end of the line are not interpreted by the routines which search the file.
Service names may contain any printable character other than a field delimiter, newline, or comment character.
INTERACTION WITH DIRECTORY SERVICES
Processes generally find service records using one of the getservent(3) family of functions, or using getaddrinfo(3). On Mac OS X, these
functions interact with the DirectoryService(8) daemon, which reads the /etc/services file as well as searching other directory information
services to determine service name, protocol, and port information.
FILES
/etc/services
SEE ALSO getservent(3), getaddrinfo(3), DirectoryService(8)HISTORY
The services file format appeared in 4.2BSD.
4.2 Berkeley Distribution June 5, 1993 4.2 Berkeley Distribution
Check Out this Related Man Page
services(4) Kernel Interfaces Manual services(4)NAME
services - service name data base
DESCRIPTION
The file associates official service names and aliases with the port number and protocol the services use. For each service a single line
should be present with the following information:
<official service name> <port number/protocol name> <aliases>
Port numbers 0 through 1023 are assigned by RFC 1700. This RFC also lists the conventional use of various ports with numbers greater than
1023.
Aliases are other names under which a service is known. Library routines such as can be invoked with a service alias instead of the ser-
vice official name. For example:
In this example, can be invoked with instead of
instead of
Both produce the same results.
Items are separated by any number of blanks (space or tab characters in any combination). The port number and protocol name are considered
a single item. A is used to separate the port and protocol (for example, A character indicates the beginning of a comment. Characters
from the to the end of the line are not interpreted by routines which search the file.
Service names can contain any printable character other than a white space, newline, or comment character. Trailing blanks (spaces or
tabs) are allowed at the end of a line.
Not all services listed in this file are available on HP-UX.
EXAMPLES AUTHOR
was developed by the University of California, Berkeley.
FILES SEE ALSO getservent(3N).
services(4)
I'm just wondering what the differences/relationships there are between processes, services, daemons and subsystems?
I keep coming across these terms but I can't find clear definitions/explanations of these terms.
:confused: (3 Replies)
Hi There
We currently experiencing a problem on our Unix server Sco 5.07 , whereby
the tcp services stops on it own and even if we restart the services manually the services still does not come up,We loose the printer and pc connections to the server we then need to restart the Unix server in... (1 Reply)
Hi Friends,
I've a large datafile, I've to sort the entire records of this file based on the positions. For ex:
ccc112IVEAGH VETERINARY SERVICES
cca110SHOOTER PROPERTY SERVICES
bbb111JUNIOR GOLF ACADEMY LIMITED
aaa110AULD PROPERTIES T/A R&J AULD
ccb111LISBURN FUELS
aac112P & MRS C... (1 Reply)
How can i check which service is activated on my AIX Box?
how one can check particular port is open or not (like ftp/telnet port)?
I dont have admin rights (1 Reply)
Hello,
Can anyone help me by telling how to open port 161 in solaris 10? I have added it in /etc/services but it is not working. I checked by telneting but I could not connect to that server on the port 161. I am trying to communicate using snmp services. (6 Replies)
I did search on the subject on services in linux and they do explain how to find what are the services that loaded when the linux boot.
however I have not find how to detect what services run right now.
I would like to now that and how to kill services.
Thanks. (3 Replies)
Hi
In my AIX 5.3 box I already have the below entry:
#cat /etc/services | grep -i 3602
infiniswitchcl 3602/tcp # InfiniSwitch Mgr Client
infiniswitchcl 3602/udp # InfiniSwitch Mgr Client
Now I got an requirement to add the below entry in the same port... (6 Replies)
Hi
I would like to know, how to find that particular process is running on which port other than /etc/services as this file shows well known ports information. (1 Reply)
Hi all, is it possible to use a different port number for daytime service. By default the port number of daytime service is 13, so what if I want to get the time from a different port number e.g say 9000 (or any other port).
I guess this would remain the same on the server side !... (2 Replies)
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
I got the service status through nc on remote network but 2 services doesn't have port number.how to get the other 2 services status with out port number .pls provide the solution to me.
I need to develop with is in a script (2 Replies)
I got the service status through nc on remote network but 2 services doesn't have port number.how to get the other 2 services status with out port number .pls provide the solution to me. (1 Reply)