Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Is There A Command

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2005, 08:22 AM
Default Is There A Command




A 'netstat -t' will tell me the connection status of tcp sockets, but
is there a command that will tell me what sockets are listening?

I know that 'nmap localhost' will find out what sockets are listening
by trying all ports, but that's not quite the same.

Dan


Dan
Reply With Quote
  #2  
Old 04-21-2005, 08:28 AM
Coenraad Loubser
Guest
 
Posts: n/a
Default Re: Is There A Command

Dan wrote:
> A 'netstat -t' will tell me the connection status of tcp sockets, but
> is there a command that will tell me what sockets are listening?
>
> I know that 'nmap localhost' will find out what sockets are listening
> by trying all ports, but that's not quite the same.
>
> Dan

nmap localhost
?
Reply With Quote
  #3  
Old 04-21-2005, 08:33 AM
Davide Bianchi
Guest
 
Posts: n/a
Default Re: Is There A Command

On 2005-04-21, Dan <(E-Mail Removed)> wrote:
> A 'netstat -t' will tell me the connection status of tcp sockets, but
> is there a command that will tell me what sockets are listening?


netstat -l

man netstat for more info
Davide

--
The sun was shining on the sea, Shining with all his might:
He did his very best to make The billows smooth and bright --
And this was very odd, because it was The middle of the night.
-- Lewis Carroll, "Through the Looking Glass"
Reply With Quote
  #4  
Old 04-21-2005, 08:42 AM
Jose Maria Lopez Hernandez
Guest
 
Posts: n/a
Default Re: Is There A Command

Dan wrote:
> A 'netstat -t' will tell me the connection status of tcp sockets, but
> is there a command that will tell me what sockets are listening?
>
> I know that 'nmap localhost' will find out what sockets are listening
> by trying all ports, but that's not quite the same.


lsof -i

> Dan


Regards.

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
Reply With Quote
  #5  
Old 04-21-2005, 08:48 AM
Dan
Guest
 
Posts: n/a
Default Re: Is There A Command

On Thu, 21 Apr 2005 09:33:03 +0200, Davide Bianchi
<(E-Mail Removed)> wrote:

Thanks.

I had done 'man netstat', but there were too many options and I missed
that one.

Dan


>On 2005-04-21, Dan <(E-Mail Removed)> wrote:
>> A 'netstat -t' will tell me the connection status of tcp sockets, but
>> is there a command that will tell me what sockets are listening?

>
>netstat -l
>
>man netstat for more info
>Davide


Reply With Quote
Reply

Tags
command

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:51 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.