You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
675 B
20 lines
675 B
#/bin/bash
|
|
|
|
echo -e "\nCheck the 'Size, Used, Avail and Use%'\n"
|
|
echo "--------------------------------------------------------"
|
|
echo "Filesystem Size Used Avail Use% Mounted on"
|
|
echo "--------------------------------------------------------"
|
|
df -h | grep '/dev/md0'
|
|
|
|
echo -e "\n\nCheck which folder is using all the space:"
|
|
for volume in /volume*; do
|
|
set -- "$@" "--exclude=${volume:1}"
|
|
done
|
|
echo -e "\n-------------------------"
|
|
echo "Size Folder"
|
|
echo "-------------------------"
|
|
du -hd 1 "$@" 2>/dev/null
|
|
echo -e "\nThe last line is the total space used."
|
|
echo "It is normal for /usr to be around 1GB."
|
|
echo "/root should be no more than a few MB."
|
|
|
|
|