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
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 |
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 |
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 |
How was linux developed?
Do I need antivirus on linux mint?
What is the best linux operating system?
What's the best version of linux?
Hi All we are porting are application from linux 2.4 to 2.6 .Please let me know what kind of manual balck box testing we can use to test application and how.
Is linux a computer operating system?
Why is linux safer than windows?
What is ssh port forwarding?
Is linux user friendly?
Will linux run windows programs?
Explain process id.
What is the maximum length for any file name under linux?