UNIX Shells by Example (4th Edition)

 <  Day Day Up  >  

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 -s /desktop 2 du -a

EXPLANATION

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

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

 <  Day Day Up  >  

Категории