Skip to content

Instantly share code, notes, and snippets.

@yoander
Last active Oct 22, 2016
Embed
What would you like to do?
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