network port
Hi. Beeing new to Linux, I need to find out what is associated to a particular port (say 10000). Which command will tell me?
Thank you |
Greetings,
Well, if it's one of the standard IANA-assigned ports, you can simply do: Code:
~ $ less /etc/services Code:
...<snip>... |
You can find a complete list of well-known ports here too, if you don't happen to be on a linux machine with a local file copy
http://www.iana.org/assignments/serv...-numbers.xhtml |
If you need to know, which programm or service is currently using a certain port on your machine you can use
Code:
netstat --tcp --udp --listening --program | grep <port number> |
All times are GMT -5. The time now is 05:50 AM. |