Wazaterm » Linux Commands » du

How to use du Linux command

The du(Disk Usage) is the command to report the amount of disk space used by the specified files and for each subdirectory.

Usage

How to find largest files and directories in Linux

$ du -a | sort -n -r | head -n 15

Show all disk usage including files in the current directory

$ du -a