7 ms·
For a CLI alternative to manually running `du -sh *` recursively to try and find which directory is taking up your space I recommend `ncdu`. I'm pretty sure th
by someperson 6y ago
For a CLI alternative to manually running `du -sh *` recursively to try and find which directory is taking up your space I recommend `ncdu`.
I'm pretty sure there was a similar CLI app better than `ncdu` but I don't recall it right now.
- zevv 6y agoThere is also Duc: https://duc.zevv.nl/ https://duc.zevv.nl/. It has a both a Tui and a Gui, but can also do nifty CGI things (shameless plug)
- fmajid 6y agoSeconded. Duc is awesome. Thanks for your great work on it!
- dmd 6y agoI love duc but man is it nearly impossible to build.
- zevv 6y agoauthor here. please drop your grievances in a github issue t see if we can help you out, because building should be a simple as "configure && make && make install"
- unhammer 6y agobaobab is a nice GUI alternative that has similar graphs to duc, except I can never remember the name =P (fortunately it shows up when I search the "start menu" for "usage") https://wiki.gnome.org/action/show/Apps/DiskUsageAnalyzer https://wiki.gnome.org/action/show/Apps/DiskUsageAnalyzer
- deleted 6y ago[deleted]
- ape4 6y agoI use `ncdu --color dark` for pretty colors.
- kurlberg 6y agoAnother option is du | sort -n (I've got it aliased to "dun".)
- buzzwordninja 6y agoOr human readable. This is what I usually use: du -sh * | sort -h
- weaksauce 6y agoi have an alias that shows each folder in the current directory humanized... might have been slightly modified from one where i got it to work on macos. duf == disk utilization folders. a caveat is that it can be a bit slow if there are a lot of files/subdirectories. alias duf='du -sk * | sort -n | perl -ne '\''($s,$f)=split(m{\t});for (qw(K M G)) {if($s<1024) {printf("%.1f",$s);print "$_\t$f"; last};$s=$s/1024}'\'
- nextaccountic 6y agoalso dust https://github.com/bootandy/dust https://github.com/bootandy/dust
- fomine3 6y ago`rclone ncdu` for cloud storages.