Created
March 19, 2014 03:49
-
-
Save nad2000/9635146 to your computer and use it in GitHub Desktop.
monitor and analyse file system size change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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