cat /proc/device-tree/model shows the raspberry model
free -h or cat /proc/meminfo shows the memory size