Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep control over disk-size

Tags:

cloud9-ide

I'm using Cloud9 (railstutorial.org) and noticed that the disk space used by my workspace is fastly growing toward the disk quota.

Is there a way to clean up the workspace and thereby reduce the disk space used?

The workspace is currently 817MB (see below using quota -s). I downloaded it to look at the size of the directories, and I don't understand it. The directory containing my project is only 170 MB in size and the .9 folder is only 3 MB. So together that doesn't come near the 817 MB... And the disk space used keeps growing even though I don't I'm making any major changes to the content of my project.

  Size  Used Avail  Use%
  1.1G  817M  222M   79%

Has it perhaps got to do with the .9 folder? For example, I've manually deleted several sub-projects but in the .9 folder these projects still exist, including their files. I also wonder if perhaps different versions of gems remain installed in the .9 folder... so that if you update a gem, it includes both versions of the gem.

I'm not sure how this folder or Cloud9 storage in general works, but my question is how to clean up disk space (without having to remove anything in my project)? Is there perhaps some clean-up function? I could of course create a new workspace and upload my project there, but perhaps there's an alternative while keeping the current workspace.

like image 649
Nick Avatar asked May 18 '15 14:05

Nick


Video Answer


1 Answers

The du-c9 command lists all the files contributing to your quota. You can reclaim disk space by deleting files listed by this command.

like image 62
Fabian Jakobs Avatar answered Sep 18 '22 22:09

Fabian Jakobs