Terminal Heroes – 5 – List internet active apps

Posted by Ktoso on 19/09/2009 – 16:59

A simple yet usefull command-line-fu I made up:

#list all internet active apps
  1. $ netstat -lantp | grep -i establ | awk -F/ '{print $2}' | sort | uniq
  2.  
  3. firefox
  4. java
  5. pidgin
  6. thunderbird-b

Lookup this command at CommandLineFu
Thanks to HarimaKenji for fixing a little issue with this command.
—update—
CommandLineFu user submited a super short version for this:lsof -P -i -nComandLineFu ownz!

Tags: , , , , , , ,

This post is under “coding, fun, terminal heroes” and has no respond so far.

Post a reply