一、查看主板
查看主板型号
dmidecode -t baseboardSMBIOS 2.4 present.Handle 0x0002, DMItype 2, 8 bytesBase Board Information Manufacturer: Gigabyte Technology Co., Ltd. Product Name: G41MT-D3 #这是我的主板型号啦 Version: Serial Number: |
查看BIOS信息
dmidecode -t bios......BIOS Information Vendor: American Megatrends Inc. Version: 4.6.5 Release Date: 04/25/2012 ....... BIOS Revision: 4.6...... |
二、查看CPU
通过lscpu命令查看
lscpuArchitecture: x86_64CPU op-mode(s): 32-bit, 64-bitCPU(s): 1Thread(s) per core: 1Core(s) per socket: 1CPU socket(s): 1NUMA node(s): 1Vendor ID: GenuineIntelCPU family: 15Model: 4Stepping: 9CPU MHz: 2800.135L1d cache: 16KL2 cache: 256K |
查看/proc/cpuinfo文件,获取CPU详细参数。
cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 15model : 4model name : Intel(R) Celeron(R) CPU 2.80GHz #CPU型号stepping : 9cpu MHz : 2800.135cache size : 256 KBfpu :yesfpu_exception :yescpuid level : 5wp :yesflags : fpu vme de pse tsc msr pae mce...bogomips : 5600.27clflush size : 64cache_alignment : 128address sizes : 36 bits physical, 48 bits virtualpower management: |
三、查看内存
内存使用情况
free -m total used free shared buffers cachedMem: 1977 1254 722 0 150 564-/+ buffers/cache: 539 1438Swap: 3858 0 3858 |
内存硬件信息
dmidecode -t memorySMBIOS 2.7 present.Handle 0x0008, DMItype 16, 23 bytesPhysical Memory Array Location: System Board Or Motherboard.... Maximum Capacity: 32 GB....Handle 0x000A, DMItype 17, 34 bytes....Memory Device Array Handle: 0x0008 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 4096 MB..... |
四、查看网卡
网卡型号
lspci|grep-i 'eth'02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168BPCI Express Gigabit Ethernet controller (rev 06) |
参数和指标
ethtooleth0Settings foreth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half10baseT/FullbaseT/Half100baseT/FullbaseT/Half1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half10baseT/FullbaseT/Half100baseT/FullbaseT/Half1000baseT/Full Advertised pause frame use: Symmetric Receive-only Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half10baseT/FullbaseT/Half100baseT/Full ..... Speed: 100Mb/s Duplex: Full ..... Link detected:yes |
五、查看硬盘
挂载和使用情况
df -hFilesystem Size Used Avail Use% Mounted on/dev/sda1 323M 148M 159M 49% /tmpfs 989M 0 989M 0%/lib/init/rwudev 984M 172K 984M 1%/devtmpfs 989M 0 989M 0%/dev/shm/dev/sda9 444G 62G 360G 15% /home/dev/sda8 368M 11M 339M 3% /tmp/dev/sda5 8.3G 1.5G 6.5G 19% /usr/dev/sda6 2.8G 551M 2.1G 21% /var |
分区详细信息
fdisk -lDisk /dev/sda: 500.1 GB, 500107862016 bytes255 heads, 63 sectors/track, 60801 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical): 512 bytes / 512 bytesI/Osize (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x0001ef9d Device Boot Start End Blocks Id System/dev/sda1 * 1 43 340992 83 LinuxPartition 1 does not end on cylinder boundary./dev/sda2 43 60802 488042497 5 Extended/dev/sda5 43 1137 8787968 83 Linux/dev/sda6 1137 1502 2928640 83 Linux/dev/sda7 1502 1994 3951616 82 Linux swap / Solaris/dev/sda8 1994 2043 389120 83 Linux/dev/sda9 2043 60802 471981056 83 Linux |