Linux General Question:
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?
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.
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.
Previous Question | Next 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? |