LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-10-2005, 11:08 PM   #1
vtecturbo13
Member
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 33

Rep: Reputation: 15
How can i limit the netstat local results on fedora core 3


hi,
im running fedora core 3, every time i run netstat i get a long list of results, often filling up the terminal windows and forcing me to scroll around lookin for the results , takes too much time

how can i just get the external connections to show up
kind like when u run netstat in windows

ex:
tcp 0 0 10.11.12.6:45681 72.14.207.104:http ESTA
BLISHED
tcp 0 1 10.11.12.6:60584 mahe.inrialpes.fr:ftp SYN_
SENT
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM 7595 @/var/run/hal/hotplug_s
ocket
unix 8 [ ] DGRAM 6815 /dev/log
unix 2 [ ] DGRAM 3281 @udevd
unix 3 [ ] STREAM CONNECTED 14336 /tmp/.ICE-unix/4117
unix 3 [ ] STREAM CONNECTED 14335
unix 3 [ ] STREAM CONNECTED 14334 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 14333
unix 3 [ ] STREAM CONNECTED 13451 /tmp/orbit-root/linc-11
0d-0-5746195968ef2
unix 3 [ ] STREAM CONNECTED 13450
unix 3 [ ] STREAM CONNECTED 13449 /tmp/orbit-root/linc-10
98-0-2e63af242f7cf
unix 3 [ ] STREAM CONNECTED 13448
unix 3 [ ] STREAM CONNECTED 13447 /tmp/orbit-root/linc-11
0d-0-5746195968ef2
unix 3 [ ] STREAM CONNECTED 13446
unix 3 [ ] STREAM CONNECTED 13445 /tmp/or
 
Old 10-11-2005, 01:04 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Hmm.. a netstat -a | grep CONNECTED should only show at least CONNECTED which should narrow your list to search thru. You can probably narrow it down more by checking the options in the man pages and using tools like grep to only grab what you want..
 
Old 10-11-2005, 03:21 PM   #3
vtecturbo13
Member
 
Registered: Mar 2005
Distribution: Fedora Core 3
Posts: 33

Original Poster
Rep: Reputation: 15
Thumbs up

netstat -a | grep connected , did the exact opposite actually what it displayed was nething in the connected state, so i figured well why not try, netstat | grep ESTABLISHED , and boom got what i wanted
[root@localhost ~]# netstat |grep ESTABLISHED
tcp 0 0 10.11.12.7:43941 caim-m01b.blue.aol.com:5190 ESTABLISHED
tcp 0 0 10.11.12.7:56544 205.188.9.60:5190 ESTABLISHED
tcp 0 0 10.11.12.7:46445 205.188.7.160:5190 ESTABLISHED
tcp 0 0 10.11.12.7:32876 oam-m15a.blue.aol.com:5190 ESTABLISHED
tcp 0 0 10.11.12.7:34339 oam-m08b.blue.aol.com:5190 ESTABLISHED
tcp 0 0 10.11.12.7:59166 205.188.5.92:5190 ESTABLISHED
tcp 0 0 10.11.12.7:58958 cs26.msg.dcn.yahoo.com:5050 ESTABLISHED
tcp 0 0 10.11.12.7:37109 64.12.29.72:5190 ESTABLISHED
tcp 0 0 10.11.12.7:35816 caim-d04b.blue.aol.com:5190 ESTABLISHED
tcp 0 0 10.11.12.7:43143 a205-188-221-46.deploy:http ESTABLISHED
tcp 0 0 10.11.12.7:43146 a205-188-221-46.deploy:http ESTABLISHED
tcp 0 0 10.11.12.7:33683 a205-188-221-13.deploy:http ESTABLISHED
tcp 0 0 10.11.12.7:33684 a205-188-221-13.deploy:http ESTABLISHED
tcp 0 0 10.11.12.7:46820 a205-188-221-71.deploy:http ESTABLISHED
tcp 0 0 10.11.12.7:43432 64.233.161.104:http ESTABLISHED
tcp 0 0 10.11.12.7:43437 64.233.161.104:http ESTABLISHED
tcp 0 0 10.11.12.7:39971 a205-188-221-78.deploy:http ESTABLISHED
tcp 0 0 10.11.12.7:32772 baym-cs82.msgr.hotmail:1863 ESTABLISHED
[root@localhost ~]# netstat | grep ESTABLISHED

im wondering what is grep? does it just sort results based upon single words,
thanks alot for your help
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
rc.local in fedora core 3 alvi2 Linux - Networking 2 09-07-2005 11:51 PM
Question about netstat results JaseP Linux - Security 4 11-18-2004 12:09 PM
Netstat results. Imyrryr Linux - Networking 2 07-02-2004 10:00 PM
Weird results with netstat nekromancer Linux - Networking 3 02-17-2004 01:36 AM
re: security and results of netstat probe ergo_sum Linux - Newbie 5 11-15-2003 06:34 PM


All times are GMT -5. The time now is 01:09 AM.

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