LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-07-2005, 10:00 AM   #1
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 196

Rep: Reputation: 30
Is there a way to list available ports?


Or contrapositively, is there a way to list all the used ports?

SuSe. Kernel 2.4.something.(Is there also a simple way to determine the kernel version?). Thx.

 
Old 12-07-2005, 10:18 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
I'll stick to the hidden contraposite

Used ports:
Code:
netstat -a
or
Code:
lsof -i 4
Kernel release:
Code:
uname -r
 
Old 12-07-2005, 10:21 AM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
try this for the kernal name:

Code:
uname -r
type man uname to learn the other switches to display other info.

as for to find the ports. Im using Fedora Core 3 and in the start > system tools menu there is network tools. It is a gui for several common network tools. I used the port scan in that scanning 127.0.0.1 to see my ports but can't figure out the name of the command line utility that it is a frontend for.

edit: knew that was going to happen. While i was looking for what cmd line program it was someone else posted before me. lol

Last edited by dr_zayus69; 12-07-2005 at 10:22 AM.
 
Old 12-07-2005, 02:59 PM   #4
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 196

Original Poster
Rep: Reputation: 30
thx gents. netstat -a worked well enough. I didn't care for the ouput so I piped it through grep to search for any used ports matching '611' (netstat -a|grep 611).

uname -r tells me the kernel: 2.4.19-3suse-SMP

that lsof sure gives a ton of info.

Thx a bunch.

ß
 
  


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
List of unused ports on a machine linuxprogrammer Linux - Newbie 2 10-18-2004 02:20 PM
List of unused ports on a machine linuxprogrammer Linux - Networking 1 10-18-2004 02:42 AM
list outgoing ports maenho Linux - Networking 2 10-05-2004 03:19 AM
Where do i find a list of my ports? zerofocus Linux - Security 2 03-22-2004 12:25 PM
List of IP connections and Ports sarmadys Linux - Networking 1 12-06-2001 12:26 PM


All times are GMT -5. The time now is 09:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration