Linux Disk Quotas

Linux home directories have disk quotas that limit the total disk usage. The soft disk quota is 1.8 Gb. You may exceed it for up to seven days. The hard limit is 2 Gb. You may not exceed it. If you do exceed either limit you will be unable to login normally. You will need to login using text console mode and remove some files to lower your disk quota.

How to Lower Your Disk Usage

1. Open a terminal or console.
2. Use the command quota or quota -v to see how much space you have and how much you have exceeded it.
3. Use this command regularly to see how close you are from filling your quota.
4. Use the sugestions below to free space in your account.

Suggestions For Lowering Disk Usage

Find Your Disk Usage. Enter: "cd; du -s .[A-z]* * | sort -n" to show how much disk space each file and directory is using. With this information, you can look for things to remove.

Remove "core" Files. These files are created when a process exits abnormally and can be safely deleted. Run "find ~/. -name core" to find all core files in your home directory, and run "find ~/. -name core -exec rm {} \;" to remove them.

Reduce the Firefox Cache.  1. Start Firefox.  2. Select "Preferences" from the "Edit" menu. 3. Click on "Advanced". 4. Click on "Network". 5. Under Cached Web Content click on "Clear Now". You can also do the same with Offline Web Content and User Data 6. You can also reduce the amount of space used for cache by checking the box Override automatic cache management and selecting how much space you want to allow for it.

Remove Backup Files. If you edit a file named foo.c, emacs will create a backup copy named foo.c~. You can find these files by running "cd; find . -name \*~" and you can remove them with "cd; find . -name \*~ -exec rm {} \;".

Remove Orphan Files. These files are left when a process is killed unexpectedly. To find them run "cd; find . -name #\*#" To remove them run "cd; find . -name #\*# -exec rm {} \;".

Compress Files. If you have a file named foo, "gzip foo" will compress the file and replace it with one named "foo.gz". Use "gzip -d foo.gz" to uncompress it and "zcat foo.gz" to view it.

Return To Computer Science Laboratory Page