user6578059
user6578059

Reputation: 15

How can i know how much free memory i have in a linux machine?

When i use:

  cat /proc/meminfo | grep MemFree 


  htop: Mem

I get different free memory results.

I want to run a memory consuming process. What is the number of all of the above that is relevant to me?

Upvotes: 0

Views: 60

Answers (1)

Anuj Vishwakarma
Anuj Vishwakarma

Reputation: 842

Simply try free -m which give available memory in MB. You can also try vmstat -s which gives free memory in KB.

Upvotes: 2

Related Questions