查看linux swap分區使用狀況

#!/bin/bash # function  getswap { SUM=0 OVERALL=0 for  DIR  in  ` find  /proc/  -maxdepth 1 - type  d |  egrep  "^/proc/[0-9]" ` ;  do PID=` echo  $DIR |  cut  -d / -f 3` PROGNAME=` ps  -p $PID -o  co
相關文章
相關標籤/搜索