mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-29 21:31:12 +00:00
723 B
723 B
| title | date | draft | tags | |
|---|---|---|---|---|
| Show Applications using the Internet | 2020-05-09T11:30:36-04:00 | false |
|
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 -ishows us a lot of information pertaining to processes accessing the Internet.awk '{print $1}'filters the last output to only shown us theCOMMANDcolumn.uniqfilters out multiple occurrences of a single application.tail -n +2removes the firstCOMMANDline.