Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created April 14, 2022 18:17
Show Gist options
  • Select an option

  • Save denzhel/e30aadb55fe269a666e30dd253d7926a to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/e30aadb55fe269a666e30dd253d7926a to your computer and use it in GitHub Desktop.
bash show size of ALL files and directories

If you want to print the size of all files and folders in a current directory, use the following:

sudo du -sch .[!.]* * | sort -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment