Multiple choice technology operating systems

What command used to show, how much disk space is being used up by folders?

  1. df

  2. du

  3. susage

  4. space

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The 'du' command (Disk Usage) shows how much disk space is being used by specific directories and files. In contrast, 'df' (Disk Free) shows available space on filesystems, while 'susage' and 'space' are not standard Unix commands for this purpose.

AI explanation

du (disk usage) reports the disk space consumed by files and directories, and with options like -sh it summarizes usage per folder in human-readable form — exactly what's being asked. df (disk free) reports space usage/availability at the filesystem/mount-point level, not per-folder, so it answers a different question. 'susage' and 'space' are not real commands. du is the correct answer for measuring how much space specific folders are using.