athena% fs lq pathFor example:
athena% fs lq /afs/athena.mit.edu/course/29/29.123 |
full path |
athena% fs lq /mit/29.123 |
/mit/lockername shortcut |
athena% fs lq ~29.123 |
~lockername shortcut |
This will return something like
athena% fs lq /mit/29.123 Volume Name Quota Used % Used Partition course.29.123 20000 11627 87% 73%The column labels mean the following:
athena% ls -lF pathFor example, to view the contents of the www directory:
athena% ls -lF /mit/29.123/www/ drwx------ 1 jqprof mit 2048 Jun 1 12:22 exams/ drwx------ 1 jqprof mit 2048 May 23 06:00 images/ -rw------- 1 jqprof mit 13744 Jun 1 14:09 index.html -rw------- 1 jqprof mit 21034 May 23 16:04 test.htmlThe column to the left of the date shows you the size of files in bytes, for example test.html is 21,034 bytes, or just over 21kb. Names with a / at the end are directories; note that the size shown for a directory does not indicate total space used by its contents; for that information, see the next item.
athena% du -sk pathFor example, to view total space used by the www directory:
athena% du -sk /mit/29.123/www 3060 /mit/29.123/wwwThis tells you that www is using 3060kb (just over 3mb), while the following tells you that the exams subdirectory of www is using 216kb.
athena% du -sk /mit/29.123/www/exams 216 /mit/29.123/www/exams
athena% du -sk path/* | sort -rnFor example:
athena% du -sk /mit/29.123/www/* | sort -n 14 test.html 22 index.html 216 exams 2808 imagesThis shows the total space used by each file and subdirectory of the specified directory -- in this example, the subdirectory using most of the space is images (2808kb, almost 3mb).
For a directory containing many files, you may want to limit the number of entries shown to just the largest ones, with "tail":
athena% du -sk path/* | sort -n | tailor use "more" to scroll through the list:
athena% du -sk path/* | sort -rn | more