du-summarizes disk usage

du [–arskod] [name …]

The du command reports the number of 512-byte blocks contained in all files and (recursively) directories within each directory and file specified.

Example A.22.
1  du --help
2  du -s/desktop
3  du -a
				

Explanation

  1. Displays arguments and options to du.

  2. Displays a summary of the block usage for all the files in /desktop and its subdirectories.

  3. Displays block usage for each file in this directory and subdirectories.

Get Linux Shells by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.