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 |
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.. ;)
|
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 :) |
All times are GMT -5. The time now is 08:56 AM. |