UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: dpostChapter 2
Unix Commands
Next: Reference: echo
 

du

du [options] [directories]

Print disk usage, i.e., the number of 512-byte blocks used by each named directory and its subdirectories (default is current directory).

Options

-a

Print usage for all files, not just subdirectories.

-d

Do not cross filesystem boundaries. Solaris only.

-k

Print information in units of kilobytes.

-L

For symbolic links, process the file or directory to which the link refers, not the link itself. Solaris only.

-o

Do not add child-directory statistics to the parent directory's total. No effect if -s is also used. Solaris only.

-r

Print a "cannot open" message if a file or directory is inaccessible.

-s

Print only the grand total for each named directory.


Previous: Reference: dpostUNIX in a Nutshell: System V EditionNext: Reference: echo
Reference: dpostBook IndexReference: echo

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System