Answers

Question and Answer:

  Home  Linux General

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

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.

 162 views

More Questions for you: