du

Estimate file space usage

Usage

      du FILE
    

Shows the file size of FILE

Common Flags

-h Print sizes in human readable format-s Only display the total for each file-c Produce a grand total-d, --max-depth=N Only print the file size for directories at maximum N levels deep-a Include files in the output, not only directories

Examples

      du -h *
    

Show the file space usage for files in the current directory in human readable format

Show total disk usage

      du -ch *
    

Prints the total as well

Do not print files in subdirectories

      du -sh *
    

      du -had 1 /home
    

Show the file space usage in human readable format for files and directories directly in the home directory