Re:An Illustrated Guide to Useful Command Line Tools
by cauthon on Saturday October 26, 2019 @11:22AM
(#21364185)
Seconding ncdu! The interface is great, and I like that it’s modular so you can run the disk usage component as a cronjob and then have a nightly snapshot readily accessible
Re:An Illustrated Guide to Useful Command Line Tools
by archon810 on Sunday October 27, 2019 @12:41AM
(#21367911)
I'd like to further expand on the topic of ncdu.
rclone is a great utility for syncing data between local and remote (including remote to remote) locations and supports a ton of online services.
Well, rclone also supports an ncdu command modeled after the ncdu utility. It lets you quickly calculate directory sizes on remotes that don't show dir sizes, like Google Drive, for example.
Re:An Illustrated Guide to Useful Command Line Tools
by rovr138 on Saturday October 26, 2019 @02:23PM
(#21365322)
And regarding ncdu, there are static binaries for Linux. Just put them in a folder and use them.
Re:An Illustrated Guide to Useful Command Line Tools
by wodny on Saturday October 26, 2019 @06:12PM
(#21366574)
Nice. I've missed the static binaries on the homepage and should have tried static compilation myself. Now my little python2 and find-based scripts exporting ncdu-compatible outputs[1] on systems without ncdu seem a bit redundant. On the other hand, there are some examples of filtering the output with jq.
- nnn[0] (C) - A terminal file manager, similar to ranger. It allows you to navigate directories, manipulate files, analyze disk usage, and fuzzy open files.
- ncdu[1] (C) - ncurses disk analyzer. Similar to du -sh, but allows for directory navigation as well.
- z.lua[2] (Lua) - It's an alternative to the z utility mentioned in the article. I haven't done the benchmarks, but they claim to be faster than z. I'm mostly just including it because it's what I use.
[0] https://github.com/jarun/nnn [1] https://dev.yorhel.nl/ncdu [2] https://github.com/skywind3000/z.lua