Live data from Hacker News

What: A terminal tool to check what is taking up your bandwidth

github.com

31–40 of 190 posts

Re: What: A terminal tool to check what is taking up your bandwidth

#31
post #7
post #2

What are the main differences to something like nethogs or iftop?

They are similar but they answer different questions. By default, iftop will tell you "this network interface on your machine is talking a lot to ycombinator.com". But you don't necessarily know which processes are doing the most talking collectively. This will tell you "Firefox process 4567 is talking a lot ycombinator.com" and you'll know whether 4567 is also one of the chattiest talkers right now.

> This will tell you "Firefox process 4567 is talking a lot ycombinator.com" and you'll know whether 4567 is also one of the chattiest talkers right now.

But that's what nethogs does.

Re: What: A terminal tool to check what is taking up your bandwidth

#32

Bad naming.. WHAT(1) BSD General Commands Manual WHAT(1) NAME what -- show what versions of object modules were used to construct a file (MacOS ...)

'whence' would be more specific – it's archaic in English, it means 'from where' – although it's used within the ksh shell.

Re: What: A terminal tool to check what is taking up your bandwidth

#34

Bad naming.. WHAT(1) BSD General Commands Manual WHAT(1) NAME what -- show what versions of object modules were used to construct a file (MacOS ...)

This is in the top class of utilities (htopm etc).

A good name could probably be bwtop, or tcptop or iftop.

Actually I searched for these, and turns out iftop exists! (https://linux.die.net/man/8/iftop)

Re: What: A terminal tool to check what is taking up your bandwidth

#35
post #17

Installation with yay/crate can be slow. This small tool took 4 minutes of compile time, the Rust crates seem to be very fine granular (like node.js vor example) and require much compile time. 204 crates needed to be compiled. I found that, using yay or another aur helper on arch linux, having a few rust utilities installed that have regular updates, significantly slows down the average system upgrade time. I tend to…

I added a package that uses the pre-built binaries, `what-bin` in the AUR.

Re: What: A terminal tool to check what is taking up your bandwidth

#36

Bad naming.. WHAT(1) BSD General Commands Manual WHAT(1) NAME what -- show what versions of object modules were used to construct a file (MacOS ...)

This is in the top class of utilities (htopm etc). A good name could probably be bwtop, or tcptop or iftop. Actually I searched for these, and turns out iftop exists! ( https://linux.die.net/man/8/iftop )

‘whatop’

Re: What: A terminal tool to check what is taking up your bandwidth

#37

Bad naming.. WHAT(1) BSD General Commands Manual WHAT(1) NAME what -- show what versions of object modules were used to construct a file (MacOS ...)

This is in the top class of utilities (htopm etc). A good name could probably be bwtop, or tcptop or iftop. Actually I searched for these, and turns out iftop exists! ( https://linux.die.net/man/8/iftop )

iftop is a remarkably useful utility. It's often one of the first things I install on new openwrt installations.

Re: What: A terminal tool to check what is taking up your bandwidth

#38
post #29
post #19

What can be a reason if on MacOS it does not capture traffic? I see empty panels. Tried to run with and without `sudo`.

Another poster did mention that a similarly named utility already exists on MacOS. Perhaps you’re invoking that instead?

Yes name is not unique and conflicting with existing tool. I'm launching exact this utility by defining path as

  ~/.cargo/bin/what
or

  sudo ~/.cargo/bin/what

Re: What: A terminal tool to check what is taking up your bandwidth

#39

Why do I need cargo to install on mac? (It would be nice to have a link to install) Updated To install run: curl https://sh.rustup.rs -sSf | sh

Cargo isn't easily google-able ... I was hoping someone would link how to install it, instead of being sassy. I figured it out. It can be found here: https://doc.rust-lang.org/cargo/getting-started/installation... You can install it easily by running this: curl https://sh.rustup.rs -sSf | sh

Very first result for "cargo tool programming"

https://binx.io/blog/2018/11/27/learning-cargo/

You're getting snark because your own snarky comment is the equivalent of saying "Why do I need Make to run it on the MacOS?" If you had asked instead, "What is cargo, and how do I install it?" you would get more helpful responses. Snark is met with snark.

Re: What: A terminal tool to check what is taking up your bandwidth

#40

Bad naming.. WHAT(1) BSD General Commands Manual WHAT(1) NAME what -- show what versions of object modules were used to construct a file (MacOS ...)

'whence' would be more specific – it's archaic in English, it means 'from where' – although it's used within the ksh shell.

zsh also implements whence
Post reply on HN