$free
total used free shared buffers cached
Mem: 1024928 899844 125084 0 97868 558352
-/+ buffers/cache: 243624 781304
Swap: 2522164 0 2522164
The above command is showing the total amount of free & used memory(physical & swap) in the system.
-m To get the output in MB format.More more information , give this command,