This article has participated in the "Newcomer Creation Ceremony" event to start the road of gold creation together.
1. To solve the loss of precision when importing the tariff table: You need to set the precision of the column where the billing rate in the EXCEL table is located to 8 digits after the decimal point. The specific operations are as follows
-
Select the column where the billing rate is located, right-click, and select Format Cells.
-
Modify the number of decimal places under the number and set it to the required precision.
2. Linux hardware information query command
- Motherboard Information - View the serial number of the motherboard
dmidecode | grep -i 'serial number'
\
- cpu info
2.1 Via the /proc file system
cat /proc/cpuinfo
2.2 By viewing the boot information
dmesg | grep -i cpu
dmidecode -t processor
\
- hard disk information
View partition status
fdisk -l
Check the size
df -h
View usage
you h
hdparm -I / dev / sda
dmesg | grep sda
View IDE hard disk information: sudo hdparm -i /dev/sda
View SATA hard disk information: sudo hdparm -I /dev/sda or sudo blktool /dev/sda id
\
- memory information
4.1 cat /proc/meminfo
4.2 dmesg | grep mem
4.3 free -m
4.4 vmstat #Report virtual memory statistics
4.5 dmidecode | grep -i mem
\
- network card information
5.1 dmesg | grep -i 'eth'
5.2 cat /etc/sysconfig/hwconf | grep -i eth
5.3 lspci | grep -i 'eth'
\
- Mouse, Keyboard and USB Information
View keyboard and mouse: cat /proc/bus/input/devices
View USB devices: cat /proc/bus/usb/devices
查看各设备的中断请求(IRQ):cat /proc/interrupts
\
- 显卡信息
7.1 lspci |grep -i 'VGA'
7.2 dmesg | grep -i 'VGA'
\
- 声卡信息
8.1 lspci |grep -i 'VGA'
8.2 dmesg | grep -i 'VGA'
\
- CPU的相关命令
9.1 查看物理CPU个数
cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
9.2 查看逻辑 CPU 的个数
cat /proc/cpuinfo |grep "processor"|wc -l
9.3 查看CPU是几核
cat /proc/cpuinfo |grep "cores"|uniq
9.4 查看CPU的主频
cat /proc/cpuinfo |grep MHz|uniq
\
- 其他命令
用硬件检测程序kuduz探测新硬件:service kudzu start ( or restart)
dmesg (查看所有启动时检测到的硬件信息)
lspci (显示外设信息, 如usb,网卡等信息)
cat /etc/sysconfig/hwconf
mpstat
查看PCI设备:lspci
查看USB设备:lsusb -v
查看网卡状态:sudo ethtool eth0
查看CPU信息:cat /proc/cpuinfo
显示当前硬件信息:sudo lshw