Check available memory

When one wants to know the total memory and available memory in a computer, one can try the following command:

free -g        

And the output may look like this

     total        used        free      shared  buff/cache available
Mem:  247           1          44           0         201       244
Swap:  6            3          3        

Here the rows *Mem* amd *Swap* show the info for physical and swap memory, respectively. And the columns *total* and *available* show the total memory and available memory (for starting new applications) the system has. The unit is gibibytes because the option *-g* was used.

Run command `man free` to learn more.

要查看或添加评论,请登录

Zhenguo Zhang的更多文章

社区洞察

其他会员也浏览了