The du command is used to find out the space used by the directories and files in Linux. This means you can find files and directories taking the most and least size. But by default, the du command won't let you sort the output by size. In the simplest form, it will look like this: But the output is not human-readable.

5m read timeFrom linuxhandbook.com
Post cover image
Table of contents
How to sort du command outputNext: A modern alternative to the du command

Sort: