The following example displays the sizes of two directories and all the subdirectories they contain.
$ du /var/log /var/cron 4 /var/log 3250 /var/cron |
The following example displays the sizes of two directories, all of the subdirectories and files they contain, and the total number of blocks contained in each directory.
$ du -a /var/log /var/cron 0 /var/log/authlog 0 /var/log/syslog 2 /var/log/sysidconfig.log 4 /var/log 3248 /var/cron/log 3250 /var/cron |
The following example displays the total sizes of two directories.
$ du -s /var/log /var/cron 4 /var/log 3250 /var/cron |