LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Is there a way to list available ports? (https://www.linuxquestions.org/questions/linux-networking-3/is-there-a-way-to-list-available-ports-390170/)

beeblequix 12-07-2005 10:00 AM

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.

ß

nx5000 12-07-2005 10:18 AM

I'll stick to the hidden contraposite ;)

Used ports:
Code:

netstat -a
or
Code:

lsof -i 4
Kernel release:
Code:

uname -r

dr_zayus69 12-07-2005 10:21 AM

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

beeblequix 12-07-2005 02:59 PM

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.

ß


All times are GMT -5. The time now is 05:53 PM.