Last Updated: February 25, 2016
·
171
· mafiainc

[Linux] display space sorted by % used

echo -e "Use%\tAvail:\tMounted on:" ; df -hP  | sort -nr -k5 | grep -P '\d%' | awk '{ printf $5 ; printf "\t" ; printf $4 ; printf "\t" ; print $6 }'