Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

services(4) [hpux 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)

Check Out this Related Man Page

services(4)							   File Formats 						       services(4)

NAME
services - Internet services and aliases SYNOPSIS
/etc/inet/services /etc/services DESCRIPTION
The services file is a local source of information regarding each service available through the Internet. The services file can be used in conjunction with or instead of other services sources, including the NIS maps "services.byname" and the NIS+ table "services." Programs use the getservbyname(3SOCKET) routines to access this information. The services file contains an entry for each service. Each entry has the form: service-name port/protocol aliases service-name This is the official Internet service name. port/protocol This field is composed of the port number and protocol through which the service is provided, for instance, 512/tcp. aliases This is a list of alternate names by which the service might be requested. Fields can be separated by any number of SPACE and/or TAB characters. A number sign (#) indicates the beginning of a comment; any charac- ters that follow the comment character up to the end of the line are not interpreted by routines which search the file. Service names may contain any printable character other than a field delimiter, a NEWLINE, or a comment character. Any changes to a port assignment do not affect the actual port registration of the service. FILES
/etc/nsswitch.conf configuration file for name-service switch SEE ALSO
getservbyname(3SOCKET), inetd.conf(4), nsswitch.conf(4) NOTES
/etc/inet/services is the official SVR4 name of the services file. The symbolic link /etc/services exists for BSD compatibility. SunOS 5.11 12 Oct 2000 services(4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ports and services

hello all, in order for me to close ports and remove services that could be a danger to my system i have edited the /etc/initd.conf file, /etc/system file, and renamed some of the r commands. However i wanted to know if anyone knows how to turn off all services and close ALL known ports, so i... (3 Replies)
Discussion started by: Holistic
3 Replies

2. UNIX for Dummies Questions & Answers

Define different ports for one Service

Hi all, Is it possible to define different ports for one services. For examplehave I've a SMPP service on port 6000, and I want add port 6001, and 6002, and 6003, for the SMPP service. If it's possible? how can we proceed? is it just by modifiying the /etc/services file? Thanks for your... (3 Replies)
Discussion started by: Jeremy3
3 Replies

3. Shell Programming and Scripting

String compare

Hi Friends, Can anyone help me with comparing the records in twofiles, I have two files (csv) FILE1: 1023,SMITH JAMES , (203) 789-1249 1023,HARRY POTTER , (213) 789-1249 1023,JONES D, (903) 789-1249 FILE1: 1023,SMITH ,2037891249 1023,HARRY , 2137891249 1023,JONES, 7037891249 ... (14 Replies)
Discussion started by: sbasetty
14 Replies

4. AIX

Opening ports

Hi guys, I need to open ports on my AIX machine. The only way I know is to use service name to disable or enable ports which are used by the services. I found in /etc/services that the ports are unidentified. Btw, I want to open port number 11576 and 11577. Need help on this one. Thanks! :) (1 Reply)
Discussion started by: raskita
1 Replies

5. UNIX Desktop Questions & Answers

Deleting Junks at the end of each line in a file

Is there any way to delete the Junk Characters(Invalid Characters like ^,',",),(,&,# etc.,) at the end of each record in a file? I want to do this using a single line script. Thanks to all in advance!!! (5 Replies)
Discussion started by: dave_nithis
5 Replies

6. AIX

how to check status of various services and port?

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)
Discussion started by: ashish4422
1 Replies

7. Solaris

SNMP services

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)
Discussion started by: rcmrulzz
6 Replies

8. Shell Programming and Scripting

Need help in finding and replacing port numbers.

Hi All, I am trying to write a shell script which firstly will search some files and then increase the port numbers mentioned in them by a certain no. let me clear it with an example- suppose there r few files a,b,c,d.... file a's content- <serverEntries xmi:id="ServerEntry_1"... (3 Replies)
Discussion started by: ankushsingh10
3 Replies

9. Solaris

list service with port number

Hi all, I want to list all service is running now with the specific port number (5 Replies)
Discussion started by: sharkux
5 Replies

10. Solaris

Process running on which port

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)
Discussion started by: amity
1 Replies

11. Programming

Using Different port for Daytime Service

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)
Discussion started by: manisum
2 Replies

12. Red Hat

Restart of services if port no is changed in /etc/services in RHEL

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)
Discussion started by: RHCE
10 Replies

13. Red Hat

I need Rhce materials official

I want the pdfs of course official red hat Rhce. Thanks. (1 Reply)
Discussion started by: Ultralord
1 Replies

14. Shell Programming and Scripting

Replacing multiple spaces in flat file

Greetings all I have a delimited text file (the delimiter is ';') where certain fields consist of many blanks e.g. ; ; and ; ; Before I separate the data I need to eliminate these blanks altogether. I tried the sed command using the following syntax: sed -i 's/; *;/;;/g' <filename> ... (15 Replies)
Discussion started by: S. BASU
15 Replies

15. Shell Programming and Scripting

Ping the service with out port number on remote network

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)
Discussion started by: kannansoft1985
2 Replies