How to check the number of active connections on the Linux server

With the help of the commands below, you can check active connections on Linux server on different ports:-

   netstat -ntu | grep ':143' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort
   netstat -ntu | grep ':110' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort
   netstat -ntu | grep ':25' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort
   netstat -ntu | grep ':80' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort

Manoj Wednesday 28 May 2014 - 08:29 am | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.