du [Command]

Command du

du command displays the amount of disk space occupied by files or directories.

Syntax

du [options] [directories_or_files]

Options

-a displays information about memory usage for all files (not only for directories).
-b displays the information in bytes (rather than in kilobytes).
-c displays summary information on the use of disk space.
-k displays the information in kilobytes (default).
-s displays summary information on the use of disk space without directory information.
-h, –human-readable
     print sizes in human readable format (e.g., 1K 234M 2G)

Description

The du command displays the amount of disk space (in kilobytes) occupied by the specified files or directories. By default, du displays the amount of disk space used each directory and subdirectories. Usually a team du applied to the total output volume of disk space occupied by the current directory. For example, here so you can find details of the use of disk space a directory /var/log: du /var/log

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.