linux shell to see the percentage of used disk

df | grep '/$'| awk '{print $(NF-1)}' | awk -F'%' '{print $1}'

Guess you like

Origin www.cnblogs.com/chengfengchi/p/11307977.html