next up previous contents
Next: ls Up: Unix Commands Previous: df   Contents

du


The du command is used to display the actual disk usage of a file or directory (and all its files) as well as the usage of every subdirectory in that directory.


By default the numbers are in kilobytes.

Example:

[jdpoisso@legio ~]$ du data 
132	data/image 
208	data 
[jdpoisso@legio ~]$ du summary.pdf 
232	summary.pdf 
[jdpoisso@legio ~]$

You can use the ``-h'' argument the same as with df.

Example:

[jdpoisso@legio ~]$ du jdpoisso.strace 
3224	jdpoisso.strace 
[jdpoisso@legio ~]$ du -h jdpoisso.strace 
3.2M	jdpoisso.strace



2010-08-27