Get file size for all files in directory

shell
du -sh * | sort -hr
Edit this page
Want to make your own site like this? Try gatsby-theme-code-notes by Zander Martineau.
Notes on code. My memory bank.