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

How to zip a file in Linux?

870


Which scripting language is best for linux?

875


What is a zombie process?

867


Where standard output is usually directed?

784


Can linux be hacked?

775


How do you avoid deadlock while coding?

833


You want to search for all the *.tar files in your home directory and wants to delete all at once. How will you do it?

961


Why we use red hat linux?

846


What is the difference between lock and semaphore?

846


What is truncate linux?

901


Enlist the features of the linux operating system?

823


What is the basic difference between bash and dos?

1023


What is yum in linux?

835


What is the difference between linux and unix?

1017


What is named semaphore?

869