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