Problem Statement
Which command shows disk space used by directories and files?
Explanation
du (disk usage) displays the size of directories and files recursively.
It’s helpful to locate which directories consume the most disk space.
Code Solution
SolutionRead Only
du -sh * | sort -rh | head
Practice Sets
This question appears in the following practice sets: