CS4173 > Materials > sysdocs > disc space
I have some general advice about conserving disc space.
You should use the /tmp directory to compile apache and then move the files into your own space.
You can use the gzip program to archive files (I use the --best argument for the smallest files) and there is a version of plain zip for Unix too.
If you have a directory of files to compress, it often makes sense to group them all in one archive file and then compress that file.
You can use the tar program to make an archive (tar cvf ARCHIVE.TAR DIR will make a file named ARCHIVE.TAR that contains copies of all files in the directory DIR
tar files don't save space on their own, but gzip can make a tar file smaller than the individual files, so be sure to use gzip (or zip) on the .tar file when you've made the archive.
To find out where you are using the most space use the du program.
du -sk * | sort -nr | head will show you the size of the largest ten files in the current directory.
Once you know where the big files are, you can decide which directories you want to concentrate on.