A disk quota is a limit for the amount of disk space consumed by a user. All EECS student accounts have disk quotas. This document explains the current quota limits, how to check your disk usage, and how to reduce your disk usage.
|Faculty and Staff||none|
To check your current disk usage, log onto a EECS Linux system and run the quota command. Here is some example output:
prompt> quota -s
Disk quotas for XXXXX (uid ######):
Filesystem space quota limit grace files quota limit grace
6269M* 5120M 6400M 3days 15900 0 0
If you go above your disk quota, you will get a message like the one below:
cmd: writing to 'XXXXXX': Disk quota exceeded
An account can be in one of three states:
If you are in state 2 or 3, you will receive an email twice per day reminding you that you are over quota, and that you need to clean out your home area.
In most cases, your EECS file storage area (aka Linux home area) will be available on Windows systems as the L: drive.
Unfortunately, Windows will not show your quota or disk usage correctly. The easiest way to check your quota will be to log into an EECS Linux system and follow the instructions above.
You can also determine your disk usage by the taking the following steps (Note: Depending on your disk usage, this might take a long time to run):
In the above example, the user uses about 63 MB of disk space.
To get your disk usage down you will need to delete some of the files in your home area. To find out which of your files are taking up the most space run the following command:
du -sk * .?* | sort -n
du is the disk usage command, and the s and k options stand for "summarize" and "show number of kilobytes" respectively. The next two arguments indicate what files to examine – in this case all files (*) and all dotfiles (.?*). The output from du will be sorted numerically.
The above command should produce output like this:
Each line shows the space (in KB) occupied by the given file or directory. (Ignore the . and .. entries if they are listed.) For example, in the above output the ntprofile directory is occupying 34400 KB, or approximately 34 MB. Alternatively, you can run the following command to display the size of your files in a more human-readable way.
du -sh * .?* | sort -n
The above command should produce output like this (note that sort -n does not differentiate between K, M, G, etc.):
To find out how much disk space your entire home area is occupying, run the following command:
du -sh ~
There are several types of unneeded files that occupy disk space: cached Web pages, object files, and infrequently accessed files.
The Web browser cache contains local copies of all the Web pages you have visited. The cache is typically located in ~/.mozilla/userprofile/XXXXXXXX.slt/Cache. The files in this directory can be safely removed. (XXXXXXXX will be a random string of characters).
To minimize the amount of cached content, set the cache size in your Web browser preferences to a smaller amount – such as 5 MB – rather than the typical default of 50 MB.
Object files are created as part of the compilation process for C/C++ applications. These files can occupy large amounts of disk space, but are not necessary once you are done compiling the program. Also, "core" files that are created when a program crashes can be rather large, and may not be particularly useful. To locate such files, use the find command.
find ~ -name '*.o'
find ~ -name 'core'
The first command lists all files whose name ends in ".o". The second command lists all files whose name is "core". Look at the list of these files and determine if any of them can be deleted.
Another way of reducing your disk usage is to compress files that you do not use very often. For an example, suppose you took CS 360 and have a directory with all the files used for that class. You may want to access these files in the future, but do not need to access them every day. You can compress these files to save space.
Suppose your CS 360 files are stored in ~/cs360. To compress your files, run the following commands:
tar -cvfz cs360.tgz cs360/*
This would compress all of the files and subdirectories in the ~/cs360 directory, and store the compressed files in an archive named cs360.tgz. Now you can delete the contents of the ~/cs360 directory. When you need to access the contents of the archive in the future, run the following command:
tar -xvfz cs360.tgz
This will decompress and extract the files from cs360.tgz and create (if it doesn't already exist) a cs360 directory with all the extracted files. The archive cs360.tgz will not be affected by the extraction, so you should delete the cs360 directory once you are finished using the extracted files.
Consider deleting unused files from your home drive or copying them to external media such as USB thumb drives.
As we've moved to Gnome as the default desktop for our machines, its important to remember to empty the trash periodically.
To do this in the default Gnome session, simply open up an file browser window (e.g. in the top task bar menus, go to Places → Home Folder), then the Trash folder should show up in the left navigation pane. Right-click on the Trash folder and select "Empty Trash."
Knoxville, Tennessee 37996 | 865-974-1000
The flagship campus of the University of Tennessee System