How can I find out the total physical memory (RAM) of my linux box suitable to be parsed by a shell script?

前端 未结 13 1804
梦如初夏
梦如初夏 2020-12-07 09:52

I\'m typing a shell script to find out the total physical memory in some RHEL linux boxes.

First of all I want to stress that I\'m interested in the total ph

13条回答
  •  执念已碎
    2020-12-07 10:00

    I find htop a useful tool.

    sudo apt-get install htop

    and then

    free -m

    will give the information you need.

提交回复
热议问题