Show apps that use internet connection at the moment
Posted on January 23rd, 2010
$lsof -P -i -n | cut -f 1 -d ” “| uniq | tail -n +2
Show apps that use internet connection at the moment.
show only the name of the apps that are using internet
netstat -lantp | grep -i stab | awk -F/ ‘{print $2}’ | sort | uniq
Show apps that use internet connection at the moment.
Can be used to discover what programms create internet traffic. Skip the part after awk to get more details, though it will not work showing only unique processes.
This version will work with other languages such as Spanish and Portuguese, if the word for “ESTABLISHED” still contain the fragment “STAB”(e.g. “ESTABELECIDO”)