Free is a linux command that display amount of free and used memory in the system
[root@ebs121 ~]# free
total used free shared buffers cached
Mem: 3042768 427420 2615348 0 49816 301648
-/+ buffers/cache: 75956 2966812
Swap: 2031608 0 2031608
free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]
Where:
free -g | awk '/Mem:/ {print "Physical Memory: " $2 " GB."} /cache:/ {print "Resident: " $3 " GB."}'
Physical Memory: 266 GB.
Resident: 217 GB.