Skip to content

Instantly share code, notes, and snippets.

@nad2000
Created March 19, 2014 03:49
Show Gist options
  • Save nad2000/9635146 to your computer and use it in GitHub Desktop.
Save nad2000/9635146 to your computer and use it in GitHub Desktop.
monitor and analyse file system size change
# Collect data until ^C:
while true ; do df /data ; sleep 1 ; done | tee storage.txt
# Extract "Used field":
grep /dev/md0 storage.txt | sed 's/ */\t/g' | cut -f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment