![]() |
One very important place to keep an eye on is your home directory. Many programs use space in your home directory to store preferences, settings, etc. If you don't check occasionally, you may not be aware of how much space is being used this way. Also, if you run out of space in your home, you may begin to get mysterious errors which do not appear to be related to disk space. For example, users often see "X11 connection rejected because of wrong authentication" when trying to run X Windows programs remotely.
Before reading this page, make sure to read Using your account so that you know the location of your storage areas, and how to do basic checks of quotas and partition sizes.
For example, suppose we have a large file in the User Workspace portion of our PI's storage.
[araim1@maya-usr1 data]$ pwd /home/araim1/nagaraj_common/data [araim1@maya-usr1 data]$ ls -lh total 770M -rw-r----- 1 araim1 pi_nagaraj 2.0G Oct 11 2010 train.dat [araim1@maya-usr1 data]$ du -h train.dat 770M train.dat
For the purposes of managing disk space, in all likelihood you will want to refer to the actual storage used. The "du" command will usually display this, unless you use certain flags like "--apparent-size" or "-b". See the man page "man du" for details, or stick with "du -h" to be safe, or contact us if you have questions.
[araim1@maya-usr1 ~]$ topdu
[araim1@maya-usr1 ~]$ topdu (May take some time to compute space usage) The 10 largest files or directories (in KB) under /home/araim1/ 24080 /home/araim1/.idl 14812 /home/araim1/userEstimates.txt 6448 /home/araim1/texmf.bak.tar.gz 4252 /home/araim1/beamer-3-10.tar 4244 /home/araim1/tmp 3928 /home/araim1/r-workshop 3220 /home/araim1/.matlab 2220 /home/araim1/beamer 1448 /home/araim1/out.pdf 1332 /home/araim1/2669851.pdf
[araim1@maya-usr1 ~]$ topdu -h Usage: topdu [-n <TOPN>] [-q] [<DIRNAME1>] [<DIRNAME2>] ... Display the TOPN largest files in DIRNAME1, ... DIRNAMEk Default TOPN is 10 If no DIRNAMEs specified, default is to use current working directory -q suppresses any extra output
[araim1@maya-usr1 ~]$ topdu -n 5 -q ~/ ~/nagaraj_user/ 24080 /home/araim1/.idl 14812 /home/araim1/userEstimates.txt 6448 /home/araim1/texmf.bak.tar.gz 4252 /home/araim1/beamer-3-10.tar 4244 /home/araim1/tmp 207119 /home/araim1/nagaraj_user/work 170720 /home/araim1/nagaraj_user/doc 129705 /home/araim1/nagaraj_user/petsc-2.3.3-p15 112629 /home/araim1/nagaraj_user/mpich2 109396 /home/araim1/nagaraj_user/project
[araim1@maya-usr1 ~]$ alias top15='topdu -n 5 /home/araim1' [araim1@maya-usr1 ~]$ top15 (May take some time to compute space usage) The 15 largest files or directories (in KB) under /home/araim1/ 24080 /home/araim1/.idl 14812 /home/araim1/userEstimates.txt 6448 /home/araim1/texmf.bak.tar.gz 4252 /home/araim1/beamer-3-10.tar 4244 /home/araim1/tmp