Skip to Content
gnux

--total-size

Show a directory's size as the total of everything in it.

An option of lsx.

Usage

lsx --total-size [FILE]...

Details

ShortLongValueDefaultMeaning
--total-sizenoneshow a directory's size as the total of everything in it

Examples

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 --total-size

On this page