Linux commands to list folders with their corresponding sizes

Simple du command lists all folders with their corresponding size of disk plus to start with.
DU – Disk Usage

It takes given path as an argument

Aggregate total of sizes of all files and folder underneath

Aggregate command works well with h option to display size in human readable format. For example, 2M, 1.3G etc.

To sort by file or folder size

To find the largest files or folders on a file system

List all files greater than a threshold, sorted files by size

Leave a Reply