Computing Web at BU Boston University home page Boston University home page
Title Bar
Frequently Asked Questions Contact
Computing Web
Accounts and E-mail Telecom and Networks Computers and Software Web Services Web Services Policies Help

Disk Usage

You can determine the amount of disk space you are currently using with the disk usage command:

du -sk ~

The "s" switch specifies to report only the sum for all your files rather than information for each file; the "k" switch specifies to express that number in 1024-byte blocks (KB); and the "~" at the end specifies to report information on all files in your home directory and all the subdirectories below it.

As an example:

% du -sk ~

1442 /u3/ugrad/fred

Fred's files are using 1442 KB of disk space. Divide the number of KB by 1000 to determine MB. 1442 KB is equal to 1.4 MB, which is well under the 4 MB quota for undergraduate students.

If you are find that you are approaching your disk quota, you can run the program "disk_clean" to help you find files which are likely candidates for deletion. The disk_clean program does not delete files, it simply looks through your directories for files which are usually considered temporary or old. Examples include core files (large pictures of memory which you will never need unless you plan to debug programs), editor backup files (e.g., Emacs saves the old version of any file edited under the name "filename~"), old versions of files used by news readers and mail, and intermediate files created by programs such as TeX and LaTeX. If you need help, please talk to someone at one of the Consulting Services Help Desks.

 

Accounts
Boston University
Boston University
  This Site   BU   Directory  

February 16, 2005