Every undergraduate user has 1024 MB of disk. All other students, faculty, and staff do not have such limits. Quota usage can be found by running the following command in a terminal:
quota -s username
If you are out of disk quota, you may see where your space is used by running the disk-usage
script installed on our systems.
leo@csc:~$ cd ~ leo@csc:~$ disk-usage Largest directories in /home/staff/leo 8.85547MB ./bin/ 5.85156MB ./tmp/ 3.83594MB ./bin/lib/ 2.96875MB ./gnome/ 2.60547MB ./bin/sbin/ 2.20703MB ./gnome/workspace/ 1.40234MB ./switchsnmp/ 1.1875MB ./bin/bin/ 1020KB ./bin/share/ 1016KB ./bin/share/man/ 628KB ./gnome/Documents/
In this case, the directory using the most space is my bin directory.
To free some space, you may do one or more of the following:
On the terminal, run the clear-firefox-cache
command.
Clear out the trash bin either on their desktop by right clicking on "Trash" -> "Empty", or remove the files under ~/.local/share/Trash
If you're on the terminal, run the clear-trash
command.
If you deem that the user has a legitimate reason for using the allotted quota, follow the next few steps to increase their quota.
$ cd ; pwd /home/ugc/username $ df |grep ugc nsg:/export/ug 381885664 68428480 294058528 19% /home/ugcnsg is the file server.
setquota -u -F vfsv1 $username /export/ug
You can build a report on users' quota limits by running:
for i in `/bin/ls` ; do echo -ne "$i," >> users2.txt ; quota -s $i | tail -n 1 | awk '{print $2}' >> users2.txt ; done
You can use this list to set quotas for users without quotas by running
for i in `cat users.txt |grep quotas|awk -F, '{print $1}'` ; do setquota -u -F vfsv1 $i 1048576 1572864 51200 92160 /export/ug ; done