To determine the maximum RAM capacity of your system in a Linux terminal, you can use the following command:

sudo dmidecode -t memory

This will show detailed information about your system’s memory, including the maximum capacity supported by the motherboard.

Alternatively, you can filter the relevant information with this command:

sudo dmidecode -t memory | grep -i "maximum capacity"

This will return the maximum RAM capacity directly.

sudo dmidecode -t baseboard
sudo dmidecode -t bios

Reference:

  • ChatGPT-4o