WARNING: This site is intended for online use only; mass-downloading of pages degrades the server and is prohibited.
If you attempt to use tools to mass-download the site, you may be blocked permanently by automated software.
If you want to read this CertiGuide offline, please use one of the links on the left to purchase a convenient PDF copy. Thank you.

Like what you see? Get it in one document for easy printing!
Click Here!

Custom Search






Table Of Contents  CertiGuide to A+ (A+ 4 Real)
 9  Chapter 5: The Linux Operating System
      9  Command Line Functions And Administrative Utilities
           9  Disk Space Monitoring Commands

Previous Topic/Section
df - Report Filesystem Disk Space Usage
Previous Page
Pages in Current Topic/Section
1
Next Page
Process Management
Next Topic/Section

du - Estimate File Space Usage

With this command, the system administrator can find out how much disk space is being used in any directory. An example of output, looking at the directory temp:

du temp

248 temp/xine-ui-0.9.16/src/Imlib-light

8 temp/xine-ui-0.9.16/src/aaui/.deps

12 temp/xine-ui-0.9.16/src/aaui

16 temp/xine-ui-0.9.16/src/dfb/.deps

20 temp/xine-ui-0.9.16/src/dfb

1328 temp/xine-ui-0.9.16/src

116 temp/xine-ui-0.9.16/readline/.deps

372 temp/xine-ui-0.9.16/readline/.libs

492 temp/xine-ui-0.9.16/readline

1824 temp/xine-ui-0.9.16

54552 temp/openoffice

12992 temp/soyo

16 temp/screem-0.4.1/helpers/CVS

24 temp/screem-0.4.1/helpers

16 temp/screem-0.4.1/include/CVS

172 temp/screem-0.4.1/include

The numbers are in one K byte increments. A very useful version of this command is:

du -aS /home |grep ^....[0-9]

Which would show all files in the /home directory that are larger than 50 MB. This is a useful tool for the system administrator to monitor file space usage and to be able to target files that would be the best candidates for deletion if free disk space was at a critically low level.


Previous Topic/Section
df - Report Filesystem Disk Space Usage
Previous Page
Pages in Current Topic/Section
1
Next Page
Process Management
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (A+ 4 Real) from StudyExam4Less.com. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005

Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.