// 获得CPU ID
dmidecode -t 4 | grep ID |sort -u |awk -F': ' '{print $2}'
// 获得磁盘ID
fdisk -l |grep "Disk identifier" |awk {'print $3'}
查看CPU信息
cat /proc/cpuinfo
显示当前硬件信息
sudo lshw
获取CPU序列号或者主板序列号
#CPU ID
sudo dmidecode -t 4 | grep ID
#Serial Number
sudo dmidecode | grep Serial
#CPU
sudo dmidecode -t 4
#BIOS
sudo dmidecode -t 0
#主板:
sudo dmidecode -t 2
#OEM:
sudo dmidecode -t 11
显示当前内存大小
free -m |grep "Mem" | awk '{print $2}'
查看硬盘温度
sudo apt-get install hddtemp
sudo hddtemp /dev/sda
Hello,
My name is Johan, I am a PHP programmer that specializes in data driven web applications.
Anything related to PHP, MySQL, Data scraping etc.
If you have any custom jobs you can add me on skype to discuss your requirements.
Skype: cmsdevelopers
Regards,
Johan