Not to long ago I was using only 35% of my HD. Just recently it shot up to 54% and my diskspace is 16gb so that's more then 3gigs that have been taken.
From what I remember I failed to build mysql, I installed gitolite which required me to build git from source which had a tons of dependencies (I think it was for building docs, I think I saw latex and other packages but I was drowsy when I was installing). I suspect that is what is taking the diskspace.
Anyways so far I deleted source folders I know I had and ran these commands. What else can I do? (3gigs is mighty)
sudo apt-get autoclean
sudo deborphan | xargs sudo apt-get -y remove --purge
After doing the above i did ncdu and found that
Git itself was actually using 502mb in 152 files all in '/usr/local/libexec/git-core'. Who knew. I found it strange that most of those files are 4.6mb each...
MySql was taking up 1+gb in my /tmp folder
I accidentally made a copy of my mono src folder which has two builds of mono and is 1.7gb together.
After deleting the copy of src and an extra mono build (thats 2.6gb together) + the mysql in my temp folder df now reports 28% instead of 54% which makes me feel a lot better.
I'm still surprised git uses 502mb. On windows it uses 57mb (thats about 10xless). And the equivalent folder (C:\Program Files (x86)\Git\libexec\git-core) has all those apps as shortcuts to git. and git is only 1.2mb (not 4.6). Also i checked if the linux git-core folder were all links, i know they arent softlinks (i used the cmd I tried stat git, stat git-add and saw they had the same innode. So most of these files are hardlinks (i assume) of git. So git doesnt actually take up that amount of space.find . -maxdepth 1 -type l -print0 | xargs -0 ls -ld
)