~/Blog

Brandon Rozek

Photo of Brandon Rozek

PhD Student @ RPI studying Automated Reasoning in AI and Linux Enthusiast.

Show Applications using the Internet

Published on

Updated on

There’s a great thread on ask ubuntu on seeing which applications are using the Internet. I’m going to add my own spin on the answers for future reference.

lsof -i | awk '{print $1}' | uniq | tail -n +2

Breaking it down…

  • lsof -i shows us a lot of information pertaining to processes accessing the Internet.
  • awk '{print $1}' filters the last output to only shown us the COMMAND column.
  • uniq filters out multiple occurrences of a single application.
  • tail -n +2 removes the first COMMAND line.
Reply via Email Buy me a Coffee
Was this useful? Feel free to share: Hacker News Reddit Twitter