In many cases, you may need to obtain the hardware information of the microcomputer. For example, you want to lock your software and prevent others from accessing it at will.
The most effective way is to get the serial number of the CPU, and then let your software run on a machine with such a serial number. As we all know, the CPU serial number is unique! Therefore, you can lock your software.
Another example that requires hard
C ++ hardware information to obtain the hard disk serial number
This section describes how to obtain the serial number of a hard disk, not the serial number of a hard disk partition. The core is throughDeviceIoControlInterface to obtain the version and data information of the hard
Linux has a different set of devices for each component of the computer than the Windows system you are accustomed to using. because each component or device is a file under Linux. Recognize the hardware configuration of your computerenough to buy mainly from ① is a game console or a work machine ② cost-effective consideration of ③ support considerationsChoosing a host configuration to match LinuxIf you want a more stable Linux server, based on the ov
View Nic models [root @ server] # lspci | grepEthernet00: 19.0 Ethernetcontroller: IntelCorporation82567V-2GigabitNetworkConnection view memory and cpu most direct and most commonly used commands: [root @ server] # free nb view Nic models
[Root @ server] # lspci | grep Ethernet
00:19. 0 Ethernet controller: Intel Corporation 82567V-2 Gigabit Network Connection
The most direct and common commands for viewing memory and cpu:
[Root @ server] # free
Total used free shared buffers cached
Mem:
How to view cpu, memory, hard disk, and other hardware information in linuxNote: in Linux, you can view detailed information about each cpu in/proc/cpuinfo. However, for dual-core CPUs, two CPUs are displayed in cpuinfo. It is often mistaken for two single-core CPUs.I. linux CPU size
[root@idc ~]# cat /proc/cpuinfo |grep "model name" cat /proc/cpuinfo |grep "physical id"model name: Intel(R) Xeon(TM) CPU 2.
Using system;using system.collections.generic;using system.linq;using system.management;using System.Text;namespace formular{//Need to introduce System.Management.dllThis class is used to record computer hardware information to prevent malicious damageC # Get Computer hardware information (CPU, NIC, hard disk, memory, etc.)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.