PHP
·
发表于 5年以前
·
阅读量:7636
#!/bin/bash
#查看内存使用百分比
free | sed -n '2p' | gawk 'x = int(( $3 / $2 ) * 100) {print x}' | sed 's/$/%/'