nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Small handy one liners

This is a discussion on Small handy one liners within the Getting started tutorials forums, part of the Linux Getting Started category; Just thought of sharing a few handy one liners which we use daily, Code: netstat -plant | grep :80 |awk ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 02-07-2007, 04:40 PM
Junior Member
 
Join Date: Dec 2006
Posts: 3
Rep Power: 0
digen
Default Small handy one liners

Just thought of sharing a few handy one liners which we use daily,

Code:
netstat -plant | grep :80 |awk {'print $5'} | cut -d: -f1 |sort | uniq -c | sort -nk 1
This one will show you the maximum connections from a IP on port 80 and sort it uniquely. Pretty useful when the server is being a victim of DOS attack. I'll post more in this thread.
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 09:24 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36