[root@FWD_YF_009_110 ~]# lsscsi [0:0:0:0] disk SEAGATE ST3300657SS ES62 - [0:0:1:0] disk ATA INTEL SSDSA2CW16 0362 /dev/sda [0:0:2:0] disk ATA INTEL SSDSA2CW16 0362 /dev/sdb [0:0:3:0] disk ATA INTEL SSDSA2CW16 0362 /dev/sdc [0:1:0:0] disk Dell VIRTUAL DISK 1028 /dev/sdd [3:0:0:0] cd/dvd TEAC DVD-ROM DV-28SW R.2A /dev/sr0
看第四列就知道是不是SSD硬盤了,感興趣的能夠試下html
附其餘查看信息:node
一、lshw查看全部硬件摘要信息socket
下面命令能夠查看全部硬件摘要信息,並輸出成一個html文件,把此html文件導出到電腦上,直接打開,能夠清楚的看到硬件信息:工具
[root@localhost /]# lshw -html > /hardware.html |
二、lsscsi查看SCSI控制器設備的信息測試
能夠看到Raid卡信息和全部虛擬磁盤以及光驅的信息,若是沒有硬件SCSI控制器,那就不會返回信息:ui
[root@localhost /]# lsscsi [0:2:0:0] disk DELL PERC H730P Mini 4.27 /dev/sda [0:2:1:0] disk DELL PERC H730P Mini 4.27 /dev/sdb [0:2:2:0] disk DELL PERC H730P Mini 4.27 /dev/sdc [10:0:0:0] cd/dvd PLDS DVD+-RW DS-8ABSH LD51 /dev/sr0 |
三、lscpu查看CPU信息spa
[root@localhost /]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 1 Core(s) per socket: 8 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 79 Model name: Intel(R) Xeon(R) CPU E5-2609 v4 @ 1.70GHz Stepping: 1 CPU MHz: 1699.930 BogoMIPS: 3399.52 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 20480K NUMA node0 CPU(s): 0,2,4,6,8,10,12,14 NUMA node1 CPU(s): 1,3,5,7,9,11,13,15 |
其中,code
# 查看物理CPU型號:htm
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -cblog
# 查看物理CPU個數
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
# 查看每一個物理CPU中core的個數(即核數)
cat /proc/cpuinfo| grep "cpu cores"| uniq
# 查看邏輯CPU的個數
cat /proc/cpuinfo| grep "processor"| wc -l
#查看內存大小
# cat /proc/meminfo |grep MemTotal
四、lsusb查看USB接口設備信息
[root@localhost /]# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:800a Intel Corp. Bus 002 Device 002: ID 8087:8002 Intel Corp. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard Bus 003 Device 003: ID 045e:0084 Microsoft Corp. Basic Optical Mouse Bus 003 Device 004: ID 413c:a001 Dell Computer Corp. Hub |
五、lsblk查看塊設備信息
[root@localhost /]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 200G 0 disk ├─sda1 8:1 0 2G 0 part /boot ├─sda2 8:2 0 127G 0 part / └─sda3 8:3 0 62.5G 0 part [SWAP] sdc 8:32 0 223G 0 disk └─sdc1 8:33 0 223G 0 part /oldstore sdb 8:16 0 21.1T 0 disk └─sdb1 8:17 0 21.1T 0 part /store sr0 11:0 1 1024M 0 rom |
6.
#查看硬盤大小
# fdisk -l |grep Disk
#查看磁盤空間佔用狀況
# df -h