Skip to content

Instantly share code, notes, and snippets.

@taikedz
Created July 26, 2018 09:02
Show Gist options
  • Save taikedz/035ea8d4c245b34f8acc1725f8a58fba to your computer and use it in GitHub Desktop.
Save taikedz/035ea8d4c245b34f8acc1725f8a58fba to your computer and use it in GitHub Desktop.
Sizes in root folder
folders=()
while read f; do
folders+=("/$f")
done < <(ls /|grep -v -P 'run|dev|proc')
sudo du -sh "${folders[@]}"|sort -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment