Step 1/1: Space used by a directory

du adds up the disk space used by files and directories. -s shows only the total, -h uses K, M, G. To find big directories, try du -sh *.

$ du -sh projects
Fundamentalsdu
How much space does a directory use?
Use du to show the total space used by scripts: one summary line, in human-readable units such as K and M.
treeNext lesson:df