What is the command to see on which port which
service is running? and What is the difference between /etc/services file and net stat command?

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online Linux General Job Interview Questions And Answers