Spring Into Linux

Displays the amount of disk space used by a directory and each subdirectory.

Format: du directory_name Examples: du du /home/janet

If the directory named is omitted, the current directory is used. The size is displayed as the number of KB blocks.

Opt

What It Does

Example

-a

List all files, not just subdirectories

du -a

-b

Display size in bytes

du -b

-c

Display grand total

du -c

-m

Display size in megabytes

du -m

-s

Display only the grand total

du -s

    Категории