You can use the command cat /proc/meminfo to get the memory details in the linux operating system.
But this gives much more information of memory.
If you need just the memory size , use the below command to get that.
cat /proc/meminfo | awk 'match($1,"MemTotal") == 1 {print $2}'
This gives the memory size in kilobytes(kb).
But I don't know if the format of /proc/meminfo varies among
No comments:
Post a Comment