Like the title, record it, and attach the script at the end.
· View CPU:
// 查看CPU型号
# cat /proc/cpuinfo | grep 'model name' | uniq
// 查看物理CPU的个数
# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
·Check the memory size:
# cat /proc/meminfo | grep MemTotal
·View the hard disk:
// 查看硬盘大小
# fdisk -l | grep Disk
// 查看硬盘分区分布
# lsblk
PS: sd means SCSI hard disk, the first hard disk is a, the second hard disk is b...
·Check the system version:
// 这俩可适用于所有发行版
# lsb_release -a
# cat /etc/issue
// 只适合Redhat系的Linux
# cat /etc/redhat-release
·View ip:
# ip addr show
·The one-click test script bench.sh
uploads bench.sh to the server, performs the test directly, and can check the network speed, etc...
PS: script download link ...
// 这个官网蛮有意思,就这两句命令…
# wget -qO- bench.sh | bash
// 或者
# curl -Lso- bench.sh | bash
Other reference links:
Commands for viewing CPU model, memory size, and hard disk space under Linux (detailed explanation): https://www.cnblogs.com/li-shuai/p/11076727.html
Linux viewing CPU details: https://www.jianshu. com/p/a0ab0ccb8051
Linux command to view hardware information: https://www.cnblogs.com/cloudos/p/8416415.html
[linux] Several methods to view Linux system version information: https://www.cnblogs.com /opensmarty/p/10936315.html
one-click test script bench.sh: https://blog.csdn.net/wxc1054/article/details/86468726