LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2013, 06:17 PM   #1
cdijack
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
Smile 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
 
Old 08-15-2013, 07:19 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: Ontario, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 241

Rep: Reputation: 52
Greetings,

Well, if it's one of the standard IANA-assigned ports, you can simply do:
Code:
 ~ $ less /etc/services
which from my current file says it isn't currently assigned:
Code:
...<snip>...
sctp-tunneling  9899/tcp                        # SCTP TUNNELING
sctp-tunneling  9899/udp
domaintime      9909/tcp                        # domaintime
domaintime      9909/udp
amanda          10080/tcp                       # amanda backup services
amanda          10080/udp 
...<snip>...
HTH. Let us know.
 
1 members found this post helpful.
Old 08-15-2013, 08:49 PM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
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

Last edited by Doug G; 08-15-2013 at 08:50 PM.
 
1 members found this post helpful.
Old 08-16-2013, 05:00 AM   #4
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 216

Rep: Reputation: 38
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>
Here is some more info about this topic: http://www.garron.me/en/go2linux/whi...ning-port.html
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP server port blocked on Uni network, need to change the listening port. sammyboy161 Linux - Newbie 2 10-21-2010 01:03 PM
Getting a network port Skaperen Linux - Networking 4 08-09-2010 11:36 AM
best port scanner To scan open port in a network tanveer Linux - Security 8 01-21-2007 09:19 PM
network console port ah_kayyali Linux - Networking 3 03-19-2006 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration