原文:http://yuanm.ren/post/53.html 切换root用户 sudo su root 输入命令行 dmidecode -t Memory| sed -n -e '/\tLocator:/p' -e '/Size/p' -e '/Type:/p'