Skip to content

Instantly share code, notes, and snippets.

@smbambling
Created March 27, 2015 11:08
Show Gist options
  • Save smbambling/a4b26986d46cd7bac1e5 to your computer and use it in GitHub Desktop.
Save smbambling/a4b26986d46cd7bac1e5 to your computer and use it in GitHub Desktop.
Sort files by human readable size
du -sk * | sort -rn | awk '{print $2}' | xargs -ia du -hs "a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment