Live data from Hacker News

Btop++ is a power resource monitor for Linux

github.com

21–30 of 66 posts

Re: Btop++ is a power resource monitor for Linux

#21

This looks very nice, but the compiler version requirement is very painful for those of us working on machines installed more than a year ago... GCC 10, ouch. I mean, newer versions are great, but when you don't control your machine's OS distribution, installing GCC 10 is not the most trivial thing to do.

You can just use a GCC docker image to build: https://hub.docker.com/_/gcc

Re: Btop++ is a power resource monitor for Linux

#22

Quick word of warning, if you download it: The release archive doesn't create a directory, just untars into $CWD. So do this: mkdir btop cd btop tar xjvf ~/Downloads/btop.....tbz ./install.sh Apart from that, it looks really, really nice. I like it a lot!

This is why I have trust issues when github pulling or exploding a tar.

Maybe it's just me, but this seems like the more obvious behaviour? Personally I'd typically extract in /tmp/relevant-name, and sometimes that results in /tmp/relevant-name/relevant-name.

Doesn't seem a big deal or require/cause trust issues to me.

(And when I create one, I always have to check/look up what happens, so it doesn't surprise me that a variety of things get done at all.)

Re: Btop++ is a power resource monitor for Linux

#23

Quick word of warning, if you download it: The release archive doesn't create a directory, just untars into $CWD. So do this: mkdir btop cd btop tar xjvf ~/Downloads/btop.....tbz ./install.sh Apart from that, it looks really, really nice. I like it a lot!

This is why I have trust issues when github pulling or exploding a tar.

I always check the contents with -t before extracting.

Re: Btop++ is a power resource monitor for Linux

#24
post #6

The first thing I do with a Linux installation it's always add htop, and this it's the first time I feel the need to try something new in my routine.

htop and multitail are always tied for me.

https://linux.die.net/man/1/multitail

I never heard of this one before. What's the benefit instead of doing this with Tmux?

Re: Btop++ is a power resource monitor for Linux

#25
post #22

Earlier quoted context omitted.

This is why I have trust issues when github pulling or exploding a tar.

Maybe it's just me, but this seems like the more obvious behaviour? Personally I'd typically extract in /tmp/relevant-name, and sometimes that results in /tmp/relevant-name/relevant-name. Doesn't seem a big deal or require/cause trust issues to me. (And when I create one, I always have to check/look up what happens, so it doesn't surprise me that a variety of things get done at all.)

It's been common convention for decades that if you distribute a source tarball of something, that everything inside is inside a directory named foobar-1.0 where 'foobar' is the project name and 1.0 is the version.

Not everyone does this, of course, but it's nice when they do. Because it means you can just wget the file into a dir and untar it without worrying about it messing up whatever is already there. Also handy for putting different versions of the project side-by-side.

Re: Btop++ is a power resource monitor for Linux

#26
post #22

Earlier quoted context omitted.

This is why I have trust issues when github pulling or exploding a tar.

Maybe it's just me, but this seems like the more obvious behaviour? Personally I'd typically extract in /tmp/relevant-name, and sometimes that results in /tmp/relevant-name/relevant-name. Doesn't seem a big deal or require/cause trust issues to me. (And when I create one, I always have to check/look up what happens, so it doesn't surprise me that a variety of things get done at all.)

That was typical on DOS/Windows when distributing ZIP archives, for a long time.

But on *nix systems, the idiom for tarballs usually includes a directory containing all of the contents.

> (And when I create one, I always have to check/look up what happens, so it doesn't surprise me that a variety of things get done at all.)

True - I usually do a `tar tf foo.tar.xz |head` to get a quick peek at the archive. This generally avoids the problem of dumping a bunch of files into the current directory.

Re: Btop++ is a power resource monitor for Linux

#27
post #6

The first thing I do with a Linux installation it's always add htop, and this it's the first time I feel the need to try something new in my routine.

htop and multitail are always tied for me.

> multitail

You just made my day. I always open multiple ssh sessions just to display various logs at the same time.

Seems like you can even docker-compose logs -tf | multitail -j.

edit: I never took the time to learn tmux but after just watching a use case video, seems like you could achieve the same result with tmux indeed, as the other comment suggested.

Re: Btop++ is a power resource monitor for Linux

#28
post #19
post #6

The first thing I do with a Linux installation it's always add htop, and this it's the first time I feel the need to try something new in my routine.

htop and ncdu

For me, it's been bottom https://github.com/ClementTsang/bottom and dua https://github.com/Byron/dua-cli for a while

I've found some other cool CLIs written with rust at https://github.com/TaKO8Ki/awesome-alternatives-in-rust

Re: Btop++ is a power resource monitor for Linux

#29

Quick word of warning, if you download it: The release archive doesn't create a directory, just untars into $CWD. So do this: mkdir btop cd btop tar xjvf ~/Downloads/btop.....tbz ./install.sh Apart from that, it looks really, really nice. I like it a lot!

I use atool (https://www.nongnu.org/atool/) for unpacking random archives - it abstracts away all formats including zip/rar/7z, compression and also guarantees that nothing is ever extracted into $CWD.

Re: Btop++ is a power resource monitor for Linux

#30
post #29

Quick word of warning, if you download it: The release archive doesn't create a directory, just untars into $CWD. So do this: mkdir btop cd btop tar xjvf ~/Downloads/btop.....tbz ./install.sh Apart from that, it looks really, really nice. I like it a lot!

I use atool ( https://www.nongnu.org/atool/ ) for unpacking random archives - it abstracts away all formats including zip/rar/7z, compression and also guarantees that nothing is ever extracted into $CWD.

Gotta check that out, thanks for the tip!
Post reply on HN