1. view all the hardware information of the machine: dmidecode | moredmesg | the more commands have a lot of information, so we recommend that you use them later | more for ease of viewing 2. view CPU Information Method 1: CPU-related parameters in Linux are saved in the proccpuinfo file catproccpuinfo | more Method 2: Use the command dmesg | grepCPU
1. view all hardware information of the machine:
DmIdEcode |More
DMesg| More
These twoCommandThe output information is very large, so we recommend that you use it later | more for ease of viewing
2. View CPU Information
Method 1:
CPU-related parameters in Linux are stored in/proc/CpUinfo File
Cat/Proc/cpuinfo | more
Method 2:
Use commandsDmesg|GrepCPU allows you to view CPU startup information.
View the number of CPUs:
Getconf LONG_BIT
3. View Mem Information
Cat/proc/meminfo | more (note the last line of output information: MachineMem: 41932272 kB)
Free-M
Top
4. view disk Information
Method 1:
Fdisk-L you can see the partition and size information of the disk (including the USB flash disk) on the system.
Method 2:
View
Cat/proc/partitions
5. View Nic Information
Method 1:
Ethtool eth0 can use this command to view NIC-related technical indicators
(Not all network cards support this command)
Ethtool-I eth1 add-I parameters to view the NIC Driver to try other parameters to view Nic related technical parameters
Method 2:
You can also view the NIC name (manufacturer) and other information through dmesg | grep eth0.
View/etc/sysconfig/network-scripts/ifcfg-eth0 to see the current Nic configuration including IP, gateway address and other information.
You can also useIfconfigCommand to view.
6. How to view the motherboard information?
LsPci
7. How to view USB devices
Method 1:
In fact, you can use the fdisk-l command to view the information of the connected USB flash disk. Your USB flash disk information is as follows:
Disk/dev/sda: 2012 MB, 2012217344 bytes
16 heads, 32 sectors/TrAcks, 7676 cylinders
Units = cylinders of 512*512 = 262144 bytes
Device Boot Start End Blocks Id System
/Dev/sda1*16 7676 1961024 B W95 FAT32
The device file of the USB flash drive is in the/dev/sda, 2 GB size, and FAT32 format.
By default, Linux does not have a built-in drive that supports NTFS disks, but supports FAT32 well. The-t vfat parameter is generally not required for mounting.
If ntfs is supported, the-t ntfs parameter should be used for ntfs-format disk partitions.
-O iochar can be used in case of garbled characters.Set= Character set parameters.
You can use lSuSb command to view USB device information:
[Root @ miix tmp] # lsusb
Bus 001 Device 001: ID :0000
Bus 002 Device 001: ID :0000
Bus 003 Device 001: ID :0000
Bus 004 Device 002: ID 0951: 1613 Kingston Technology
Bus 004 Device 001: ID :0000