Skip to Content
gnux

-S, --sort-size

Sort by file size, largest first.

An option of lsx.

Usage

lsx -S [FILE]...
lsx --sort-size [FILE]...

Details

ShortLongValueDefaultMeaning
-S--sort-sizenonesort by file size, largest first

Examples

Largest files first, with sizes in powers of 1000

lsx -lS --si downloads/

Smallest files first (reverse the size sort)

lsx -lShr downloads/

Your downloads folder is full: find the biggest folders, each sized by everything in it, with the sizes colored by magnitude

lsx -lS --total-size --only-dirs --color-scale=size ~/Downloads

Help in the terminal

gnux help lsx --sort-size

On this page