Skip to content

Instantly share code, notes, and snippets.

@letsspeak
Created June 5, 2013 12:09
Show Gist options
  • Save letsspeak/5713441 to your computer and use it in GitHub Desktop.
Save letsspeak/5713441 to your computer and use it in GitHub Desktop.
centos - disk_usage oneliner
df | awk 'NR==2' | awk '{print int($3/$4 * 100)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment