[root@hcss-ecs-c16f ~]# lscpu |grep 'CPU(s):'
CPU(s): 2
NUMA node0 CPU(s): 0,1
[root@hcss-ecs-c16f ~]# free -h
total used free shared buff/cache available
Mem: 1.8G 213M 471M 96M 1.1G 1.3G
Swap: 0B 0B 0B
[root@hcss-ecs-c16f ~]# uname -a
Linux hcss-ecs-c16f 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@hcss-ecs-c16f ~]# cat /etc/issue
\S
Kernel \r on an \m
[root@hcss-ecs-c16f ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@hcss-ecs-c16f ~]# cat /proc/cpuinfo |grep processor
processor : 0
processor : 1
[root@hcss-ecs-c16f ~]# cat /proc/cpuinfo |grep processor|wc -l
2
[root@hcss-ecs-c16f ~]# cat /etc/hostname
hcss-ecs-c16f
列出所有PCI设备
root@hcss-ecs-c16f ~]# lspci -tv
-[0000:00]-+-00.0 Intel Corporation 440FX - 82441FX PMC [Natoma]
+-01.0 Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
+-01.1 Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
+-01.2 Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II]
+-01.3 Intel Corporation 82371AB/EB/MB PIIX4 ACPI
+-02.0 Cirrus Logic GD 5446
+-03.0 Red Hat, Inc. Virtio network device
+-04.0-[01]--
+-05.0-[02]----01.0 Red Hat, Inc. Virtio block device
+-06.0-[03]--
+-07.0-[04]--
+-08.0-[05]--
+-09.0-[06]--
+-0a.0-[07]--
+-0b.0-[08]--
+-0c.0 Red Hat, Inc. Virtio console
\-0d.0 Red Hat, Inc. Virtio memory balloon
列出所有usb设备
lsusb -tv
列出所有加载的模块
[root@hcss-ecs-c16f ~]# lsmod
Module Size Used by
tcp_diag 12591 0
inet_diag 18949 1 tcp_diag
nfit 59735 0
libnvdimm 163620 1 nfit
iosf_mbi 15582 0
crc32_pclmul 13133 0
ghash_clmulni_intel 13273 0
ppdev 17671 0
aesni_intel 189456 0
lrw 13286 1 aesni_intel
gf128mul 15139 1 lrw
glue_helper 13990 1 aesni_intel
ablk_helper 13597 1 aesni_intel
cryptd 21190 3 ghash_clmulni_intel,aesni_intel,ablk_helper
pcspkr 12718 0
joydev 17389 0
parport_pc 28205 0
virtio_balloon 18015 0
parport 46395 2 ppdev,parport_pc
i2c_piix4 22401 0
ip_tables 27126 0
ext4 592325 1
mbcache 14958 1 ext4
jbd2 107486 1 ext4
ata_generic 12923 0
pata_acpi 13053 0
virtio_net 27994 0
virtio_blk 18472 2
net_failover 18147 1 virtio_net
failover 13374 1 net_failover
virtio_console 28076 0
cirrus 24171 1
drm_kms_helper 186531 1 cirrus
syscopyarea 12529 1 drm_kms_helper
sysfillrect 12701 1 drm_kms_helper
sysimgblt 12640 1 drm_kms_helper
fb_sys_fops 12703 1 drm_kms_helper
ttm 100769 1 cirrus
drm 468454 4 ttm,drm_kms_helper,cirrus
ata_piix 35052 0
crct10dif_pclmul 14307 0
crct10dif_common 12595 1 crct10dif_pclmul
libata 247190 3 pata_acpi,ata_generic,ata_piix
crc32c_intel 22094 0
serio_raw 13434 0
virtio_pci 22985 0
virtio_ring 22991 5 virtio_blk,virtio_net,virtio_pci,virtio_balloon,virtio_console
virtio 14959 5 virtio_blk,virtio_net,virtio_pci,virtio_balloon,virtio_console
drm_panel_orientation_quirks 17180 1 drm
floppy 73520 0
参考:
https://cloud.tencent.com/developer/article/2184506
菜鸟的自白