Ok quick note. Annoying because
mintyfresh glitch-e6430 # du -sh home/glitch/ 3.8G home/glitch/ mintyfresh glitch-e6430 #
Ok so, let’s figure out where it’s gone to:
mintyfresh glitch-e6430 # du -sh home/glitch/* | sort -h | tail -n 5 112K home/glitch/dropbox.py 1.4M home/glitch/get-pip.py 2.6M home/glitch/recording-1059.wav 15M home/glitch/base.apk 15M home/glitch/chef-repo.tar.bz2 mintyfresh glitch-e6430 #
Well that doesn’t make sense. None of those folders add up to gigabytes of data. So it must be a hidden directory, beginning with a . (period) but how do you get the disk space?
mintyfresh glitch-e6430 # du -sh home/glitch/.* 3.8G home/glitch/. 4.0K home/glitch/.. mintyfresh glitch-e6430 #
NOPE. It’s not as easy as you’d think to get the disk space of all the directories beginning with a period.
mintyfresh glitch-e6430 # cd home/glitch/ mintyfresh glitch # du -sh ./.* 3.8G ./. 4.0K ./.. mintyfresh glitch #
mintyfresh glitch # du -sh `ls -a` 3.8G . 4.0K .. mintyfresh glitch #
NOPE. I tried the above because I read more than one guide on the internet that says that should have worked. Not sure what I’m doing wrong but I cobbled together my own solution and I’m posting it here so I can reference it later, that is all. I’m sure I would eventually have found an article mentioning a similar, or maybe even better, solution.
mintyfresh glitch # du -sh .[a-z0-9]* | sort -h | tail -n 5 207M .dropbox 588M .vagrant.d 679M .config 858M .wine 1.1G .thunderbird mintyfresh glitch #
There we go. Again I’m sure there’s probably a “better” way to do it, in Linux there always is, but this works for me.