O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

du

Format:

du options directory

Options:

-a Display sizes for every file, not only directories
-s Display the grand total only

Du prints the disk usage in 512 blocks. It is used mainly to print out the sizes of directories.

					$ pwd 
/var 
$ du -s 
14929   .
				

The size of the /var directory structure is 14929 (512) blocks.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required