du

Send to Kindle
home » snippets » linux » du


Some Options

Option Description
-h
--human-readable
Append a size letter to each size, such as ‘M’ for mebibytes.
Powers of 1024 are used, not 1000; ‘M’ stands for 1,048,576 bytes.
This option is equivalent to --block-size=human-readable.
Use the --si option if you prefer powers of 1000.
-x
‘--one-file-system
Skip directories that are on different file systems
from the one that the argument being processed is on.
-L
--dereference
Dereference symbolic links (show the disk space used by the file or directory
that the link points to instead of the space used by the link).

Examples

du --max-depth=1 -h -x -L .