3 ms·
I've used graphical tools very similar to this, and I always come back to this: du -h | sort -rh | less (might have to sudo that du depending on current fo
by OskarS 2y ago
I've used graphical tools very similar to this, and I always come back to this:
du -h | sort -rh | less
(might have to sudo that du depending on current folder. on macos, use gsort)
You just immediately see exactly what you need to delete, and you can so quickly scan the list. I'm not a terminal die-hard "use it for everything" kinda guy, I like GUIs for lots of stuff. But when it comes to "what's taking up all my space?" this is honestly the best solution I've found.
- pnutjam 2y agoI like to use: du -shx \* I used to pipe that to: | grep G to find anything gig sized, but I like your: | sort -rh Thanks!
- OskarS 2y agoGood tip! Yeah, the `sort -rh` is what makes it sing, it's such a cool feature of coreutils that `sort` knows how to sort human-readable output from `du` or `df`