Linux General Question:
Download Questions PDF

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?

Linux General Interview Question
Linux General Interview Question

Answer:

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.

Download Linux General Interview Questions And Answers PDF

Previous QuestionNext Question
In /etc/fstab, wat is the meaning of defaults word and 0 0 indicates which options?What is the differences between scp and rsync in Linux?