Disk Space
The commands dsu, du and df provide information on disk space usage and availability.
Run dsu to see your largest files and directories:
$ dsu *** Total space used in /home/user: 762M /home/user *** Top 5 largest directories in /home/user: 199M /home/user/mdir 121M /home/user/cs35 81M /home/user/cs21 67M /home/user/admin 42M /home/user/pwd *** Top 7 largest files in /home/user: 20M ./.spamassassin/bayes_seen 9.1M ./.sage/gap/workspace-386569765 8.2M ./.razor/razor-agent.log 7.4M ./.cpan/Metadata 5.5M ./.mozilla/firefox/xf69m93e.default/urlclassifier2.sqlite 5.1M ./cs21/core 4.8M ./mdir/bugtraq
To see how much space your home directory is using, try the following:
$ du -sk /home/username
If you want to know the amount of space being used by a directory, type:
$ du -sk directory_name
To see how much disk space is available, use the df command (on allspice). The line highlighted in green below shows that there are 9.0 GB left in the /export/home/users1 partition:
allspice$ df -hF ext3
Filesystem Size Used Avail Use% Mounted on /dev/sdc1 387M 59M 308M 16% / /dev/sdc3 594M 224M 340M 40% /var /dev/sdc5 594M 17M 548M 3% /tmp /dev/sdd1 5.8G 1.3G 4.2G 24% /usr /dev/sda1 1011M 462M 498M 49% /var/mail /dev/sdc6 594M 376M 188M 67% /usr/swat /dev/sdc7 14G 1.7G 11G 13% /usr/local /dev/sdd3 27G 20G 6.7G 74% /scratch /dev/sda2 15G 5.6G 9.0G 39% /export/home/users1 /dev/sdb1 15G 4.6G 10G 32% /export/home/users2 /dev/sdb2 15G 7.4G 7.2G 51% /export/home/staff
We try to keep the user disks filled to less than half capacity so we don't get into a crunch. To do this, we use quotas that impose limits on the amount of disk space a user can have depending on what CS classes they are taking. Please read our Quotas Help Page for more information and to find out what your quota is (or just type quota).