码迷,mamicode.com
首页 >  
搜索关键字:监测内存的使用率    ( 1个结果
检测内存的使用率
#!/bin/bashmem=free-m|grepMem|awk‘{print$3/$2*100}‘|awk-F.‘{print$1}‘if[$mem-ge80];thenecho"Memoryusageexceeds80%."read-p"Doyouwanttocleanupthememory?[y/n]"answerif
分类:其他好文   时间:2018-05-29 10:21:56    阅读次数:92
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!