Home | Mirror | Search

3. 使用內存的百分比

$ free | sed -n 2p | awk '{print "used="$3/$2*100"%","free="$4/$2*100"%"}'
used=53.9682% free=46.0318%		
		
comments powered by Disqus