[opensuse] Command (CLI) Help
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it. Don Henson -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
nmap -v -A localhost On Saturday 19 April 2008 18:46:01 Donald D Henson wrote:
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it.
Don Henson
-- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bogdan Cristea wrote:
nmap -v -A localhost
On Saturday 19 April 2008 18:46:01 Donald D Henson wrote:
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it.
Don Henson
netstat -tupan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 19 April 2008 08:46, Donald D Henson wrote:
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it.
You're right, netstat only tells you what address / ports are currently in use. But you can use "lsof" (ls for open files) to discover which process has descriptors for a given protocol family, network address, and port. Lsof has a gaggle of options, so you'll need to read the manual page and, perhaps, do some searching on the Web.
Don Henson
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, Apr 19, 2008 at 09:46:01AM -0600, Donald D Henson wrote:
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it.
-p shows the programs too. So: netstat -ap for instance. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 19 Apr 2008, Marcus Meissner wrote:-
On Sat, Apr 19, 2008 at 09:46:01AM -0600, Donald D Henson wrote:
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it.
-p shows the programs too.
That only displays programs that are running as your UID. To get the full list you need to run netstat as root.
So: netstat -ap for instance.
I'd also add -n to stop name resolution, which can slow the display down if there's a lot of TCP/UDP connections to resolve. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys SUSE 10.1 32bit | openSUSE 10.2 32bit | openSUSE 10.3 32bit | openSUSE 11.0a1 SUSE 10.1 64bit | openSUSE 10.2 64bit | openSUSE 10.3 64bit RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Donald D Henson wrote:
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it.
Don Henson
Thanks guys. I have what I need now. Don Henson -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2008-04-19 at 11:35 -0600, Donald D Henson wrote:
Donald D Henson wrote:
I can't seem to find the command to find & display what software is using which network ports. I thought netstat was it but, if so, I haven't yet discovered the magic combination of options. Can someone remind me what the command is? I'd really appreciate it.
Don Henson
Thanks guys. I have what I need now.
Don Henson
You can also do netstat -rn to see what subnets are sent to what devices. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Bogdan Cristea
-
David Bolt
-
Donald D Henson
-
John M. Anderson
-
Marcus Meissner
-
Otto Rodusek (AP-SGP)
-
Randall R Schulz