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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of open source?

472


Can I use linux on mac?

428


Compare cron and anacron in linux with an example?

451


How to uninstall software with the command line in linux?

462


What is the importance of the GNU project?

720






List the main applications of 8 bit microprocessors?

464


What is the difference between linux and bsd?

422


Who owns linux?

454


What are filenames that are preceded by a dot?

517


What is curl in linux?

441


Compare linux credit based algorithm with other scheduling algorithms?

542


How many users can login into linux server at same time??

1018


What is a swap space?

479


How linux is different from unix?

478


What separates unix and linux?

521