The command du "summarizes disk usage of each FILE, recursively for directories," e.g.,
-s is for summary (otherwise you'll get not only the size of the folder but also for everything
in the folder separately)
From man tree:
letter for kilobytes (K), megabytes (M), gigabytes (G), terabytes (T), petabytes (P) and
exabytes (E).
--du For each directory report its size as the accumulation of sizes of all its files and
sub-directories (and their files, and so on). The total amount of used space is also given
in the final report (like the 'du -c' command.)
Comments
Post a Comment