In Linux, there are several commands to get the system information/memory depending on the kernel. Below are some commands that works with most of the systems.
[Root]# dmidecode -t
Type number or keyword expectedValid type keywords are:
bios
system
baseboard
chassis
processor
memory
cache
connector
slot
[Root]#free -m