check ram specification ubuntu code example Example: ubuntu ram type sudo dmidecode | grep -A 15 Memory