In linux wat is the command to see on which port which
service is running? and wat is the differnece between
/etc/services file and netstat command

Answers were Sorted based on User's Feedback



In linux wat is the command to see on which port which service is running? and wat is the differnec..

Answer / srinivas antarvedi

i)which port which service is running

netstat -tulpn

lists all the processes running,the service name with the upd or tcp port, and the socket information

ii)/etc/services is the general port numbers and the serices that are associated with the ports where are netstat shows the running serviced,ports,the application name associated and the socket info too.

Is This Answer Correct ?    5 Yes 0 No

In linux wat is the command to see on which port which service is running? and wat is the differnec..

Answer / raj

you can also use nmap comand.This actualy shows the services
and ports open at that time.

usage: nmap

Is This Answer Correct ?    0 Yes 0 No

In linux wat is the command to see on which port which service is running? and wat is the differnec..

Answer / vadiraj joish

Netstat :- is the command which shows the running process
and what process is mapped to what port number.

/etc/services :- This file give you in the information about
the protocals and portnumbers that they use.

Note:- Portnumbers can be changed according to the requirement.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux General Interview Questions

Users come to you and they will be saying mail server is very slow, what are the necessary steps you will take to resolve this issue in Linux?

1 Answers   Arigo Infotech,


Can linux run on 2gb ram?

1 Answers  


How to delete information from a file in vi?

1 Answers  


What are the signals we have in Linux?

1 Answers  


How documentation of an application is stored?

1 Answers  


List the basic components of linux?

1 Answers  


Is it possible to reduce the size of a already created partition?

1 Answers  


Is linux a scripting language?

1 Answers  


Is linux a posix?

1 Answers  


Is handbrake illegal?

1 Answers  


Differentiate between bash and dos?

1 Answers  


what is portmapper,pam and xinetd

2 Answers   Wipro,


Categories