Developer's Daily Unix by Example
  main | java | perl | unix | DevDirectory
   
Main
Unix
Education
Unix by Example
   

 

Command du
Description "du" stands for disk usage. This command is used to show the amount of disk space consumed by one or more directories (or directory trees).
Examples du

Shows the disk usage of the current working directory. Each file in the directory and it's usage (in blocks) is displayed.

du -k

Shows the usage of the current directory in 1024-byte units (kilobytes).

du /home/fred

Shows the disk usage of the /home/fred subdirectory.

du -ks /home/fred

Shows only a summary of the disk usage of the /home/fred subdirectory (measured in kilobytes).

du -ks /home/fred/*

Shows a summary of the disk usage of each subdirectory of /home/fred (measured in kilobytes).

 


What's related

copyright 1998-2007, devdaily.com, all rights reserved.
devdaily.com, an alvin j. alexander production.