filesystem_usage
This is an old revision of the document!
Command to show how much free space left in current filesystem
echo "Percentage free space:"; echo; for DEV in `df | egrep '^/dev' | awk '{print $1}'`; \ do echo -n "$DEV => "; echo `dumpe2fs -h $DEV 2>/dev/null | grep 'lock count' | tr -t '\n' ' ' | \ awk '{printf "100*%s/%s", $3-$7, $3, "free"}'` | bc; done
filesystem_usage.1427984296.txt.gz · Last modified: 2024/05/23 07:26 (external edit)