Show the total size of ./build.
du -sh ./buildEstimate directory space use. Here, list direct children in readable units.
du [OPTION]... [FILE]...Show the total size of ./build.
du -sh ./buildList the ten largest entries by human-readable size.
du -ah . | sort -h | tail -n 10| Option / clause | Description |
|---|---|
-h, --human-readable | Print sizes in readable units. |
-s, --summarize | Display only a total for each argument. |
-a, --all | Include files as well as directories. |
-d N, --max-depth=N | Limit output to N directory levels. |
-x, --one-file-system | Skip directories on other filesystems. |
-c, --total | Add a grand total. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.