Skip to content

Instantly share code, notes, and snippets.

@yoander
Last active October 22, 2016 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoander/72f2b19f09dcec5deb3b9fd6cd3f073e to your computer and use it in GitHub Desktop.
Save yoander/72f2b19f09dcec5deb3b9fd6cd3f073e to your computer and use it in GitHub Desktop.
awk '$1 !~ /(^#)|^$/ && $3 !~ /(none|swap)/ && $2 != "/" {print $2} END {print "/proc\n/run\n/var/run\n/dev"}' /etc/fstab > /tmp/du-exclude.txt && sudo du -sh -X /tmp/du-exclude.txt /*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment