At IU, in Unix, how can I make better use of my disk quota?
On this page:
- Delete backup and temporary files
- Store temporary files elsewhere
- Compress files
- Store unused files elsewhere
To effectively manage your disk quota at Indiana University, you need first to determine the size of your disk quota and how much of it you have used. On a Unix computer, to see how much disk space you are using and how much you are allowed to use, from the Unix shell prompt, enter:
quota -vTo see how much space each file on your account takes, enter:
ls -alR ~/The command above shows a listing of all files in your account, including
those in subdirectories. If you have many files and subdirectories, the
output may be very long. To read it in page-sized chunks, use the
pipe command to format it:
See the following examples for ways to maximize storage on your Unix account without a quota increase.
Delete backup and temporary files
Delete backup and temporary files of the form filename~
and #filename# by entering:
Note: With some shells, you need to escape
the # (pound sign) character with a
\ (backslash) character, since otherwise the
shell would treat the rest of the line as a comment.
Store temporary files elsewhere
Put temporary files in the directories /tmp,
/scratch/username/, or /scr/username/ while
you are using them (where username is your
username).
Some systems may not have /scr or /scratch
directories, or you may have to create your own subdirectory in
/scr or /scratch. Files in these
directories are periodically erased and are not counted against your
quota. For information about scratch space on IU's research systems,
see At IU, how much disk space is available to me on the research systems?
Compress files
Compress files using one of several Unix compression programs. To
compress a file named bigstuff with the Unix
gzip command, at the Unix prompt, enter:
The file will be replaced in your directory with a compressed file
that has a .gz extension. You can't read files or run
programs while they are in compressed format, so this command is most
useful for storing things you want to keep but won't need to use soon.
To expand the file back to its original state, enter:
For more information about Unix compression utilities, see the online manual pages. At the Unix prompt, enter any of the following:
man gzip man tar man zip man compressStore unused files elsewhere
Download some of the files you are not using to a Windows or Macintosh computer and save them on the hard drive or a removable disk.
At Indiana University, to get support for personal or departmental Linux or Unix systems, see At IU, how do I get support for Linux or Unix?
Also see:
- What does the .Z file extension mean?
- In Unix, how can I uncompress *.Z or *.tar.Z files?
- In Unix, how do I create or decompress zip files?
- What is FTP, and how do I use it to transfer files?
- On Quarry, what Zip utilities are available?
- In Unix, what is the man command, and how do I use it to read manual pages?
- In Unix, when I use the quota command on my account, why do I see that my file quota is zero?
- Introduction to Unix commands
- What are the default disk quotas for UITS accounts, and how do I request an increase?
Last modified on August 22, 2008.






