Here are several commands to check memory in Linux.

<pre lang="bash">
free -m
cat /proc/meminfo
vmstat -s
top