linux shell 查看磁盘用的百分比

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

原文地址:https://www.cnblogs.com/chengfengchi/p/11307977.html