Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Does google own linux?

858


Is it possible to use shortcuts for a long pathname?

929


What type of file server do we have on a linux server?

990


Are drives such as hard drive and floppy drives represented with drive letters?

1042


Can you run linux on any laptop?

929


What is pthread_mutex_t in c?

905


How do mutexes work?

917


What is meant by sticky bit?

936


Where are semaphores used?

985


What is ctrl c in linux?

1013


How environment variable is set so that the file permission can be automatically set to the newly created files?

973


How do I search for files containing specific text in linux?

797


How do I check if a port is open linux?

1013


How to setup password less remote login/ssh?

1103


How can we describe a stateless linux server and what are its features?

1051