show hardware information on running system

$dmidecode

or
$sudo dmidecode

use dmidecode --type

to get specific info

dmidecode --type memory