mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
New Posts
This commit is contained in:
parent
429bdef86c
commit
6e6033cd12
3 changed files with 292 additions and 0 deletions
19
content/blog/appsusinginternet.md
Normal file
19
content/blog/appsusinginternet.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: "Show Applications using the Internet"
|
||||
date: 2020-05-09T11:30:36-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
There's a great thread on [ask ubuntu](https://askubuntu.com/questions/104739/which-applications-are-using-internet) on seeing which applications are using the Internet. I'm going to add my own spin on the answers for future reference.
|
||||
|
||||
```bash
|
||||
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.
|
Loading…
Add table
Add a link
Reference in a new issue