Bash: Is there a more efficient way of getting RAM usage in percentage

前端 未结 0 1415
时光说笑
时光说笑 2021-01-03 12:12

This is the code I made, it does work, but I know is bad and not really efficient

#!/urs/bin/bash
ramav="$(($(grep -m1 \'MemAvailable:\' /proc/meminfo |          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题