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