Live data from Hacker News

Ncdu – NCurses Disk Usage

dev.yorhel.nl

61–70 of 168 posts

Re: Ncdu – NCurses Disk Usage

#61
post #55

Broadly, is anyone aware of a generalized list of "new versions of classic tools?" There are so many now that are better than the old stuff; I almost feel like a unified round up of these, maybe even in a distro form, might be good for linux enthusiasts, newcomers, old-timers, etc.

I like iotop. Pretty much exactly what it sounds like - a top-like program for I/O operations. It's also just an apt/yum/dnf install away on most distros.

Re: Ncdu – NCurses Disk Usage

#63
post #51

If you like ncdu, you might also like dua[0]. You can run `dua i` to get an interface similar to ncdu, and can also run `dua` to list file sizes in the current directory, similar to `du`. Or `dua filename ` to get the size of a given file. [0] https://github.com/Byron/dua-cli

Not in any repo, I'll pass, thanks

Diistinctly not true. `nix run github:nixos/nixpkgs/nixos-unstable#dua`

Re: Ncdu – NCurses Disk Usage

#65
post #50

The trick with ncdu is to install it BEFORE your disk gets full from some random error log going haywire.

    $ sudo apt install ncdu
    > Not enough free space
Fuck!

Actually, one trick I learned was to create a dummy file full of zeroes or rand, maybe 200MB or so, and place it in an obvious location (e.g /) for easy deleting in such a crisis.

Re: Ncdu – NCurses Disk Usage

#68
post #50

The trick with ncdu is to install it BEFORE your disk gets full from some random error log going haywire.

That's the reason why typical Linux (or Unix) filesystem comes with a setting to set reserve some space for root account.

Doesn't help if the disk is filled by processes running as root, of course.

Re: Ncdu – NCurses Disk Usage

#70
post #55

Broadly, is anyone aware of a generalized list of "new versions of classic tools?" There are so many now that are better than the old stuff; I almost feel like a unified round up of these, maybe even in a distro form, might be good for linux enthusiasts, newcomers, old-timers, etc.

Zellij instead of tmux (not necessarily better, but it's easier to use) Xonsh instead of bash (because you already know Python, why learn a new horrible language?) bat instead of cat (syntax highlights and other nice things) exa instead of ls (just nicer) neovim instead of vim (just better) helix instead of neovim (just tested it, seems promising though) nix instead of your normal package manager (it works on Mac, an…

Tig also belongs in this list. An ncurses git repository browser that I use all the time.
Post reply on HN