DEV Community

Discussion on: These are a few of my favorite: Terminal Shortcuts

Collapse
 
mrm8488 profile image
Manuel Romero

I use a lot
du -sh */ | sort -h
To order current folder files by size

Collapse
 
clickclickonsal profile image
Sal Hernandez

The -h flag comes invalid (I'm on a Mac). Thanks for that tip though! This is pretty cool!

Collapse
 
jgaskins profile image
Jamie Gaskins

They might've been going for sort -n instead. It sorts numerically instead of alphabetically (the only reasonable sort for du output). :-)