1、linux:
dmidecode |grep Product
或者 dmidecode |grep -i product
dmidecode|grep -i 'serial number'
grep MemTotal /proc/meminfo
fdisk -l |grep "Disk" |awk '{print $2$3$4}'
cat /etc/issue
grep 'model name' /proc/cpuinfo
查看自己的LINUX是多少位的[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
[root@localhost ~]# getconf WORD_BIT
32
[root@localhost ~]# echo $HOSTTYPE
i686
2、windows:
中文系统:systeminfo|findstr "系统型号"
英文系统:systeminfo|findstr "Model"
wmic bios get SerialNumber /value
wmic cpu get name
wmic diskdrive get Model,Size
ipconfig /all|findstr "Physical Address"
wmic memlogical get TotalPhysicalMemory
阅读(5660) | 评论(0) | 转发(0) |