sudo dmidecode --type 17
free -m
free -g
for more information search this webside -- https://www.howtogeek.com/659529/how-to-check-memory-usage-from-the-linux-terminal/