-
lsb_release -a #查看系统版本
cat /proc/cpuinfo | grep name #查看CPU
cat /proc/meminfo | grep Mem #查看内存
sudo fdisk -l | grep -E '.+/dev/' #查看磁盘 Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors =》 磁盘 /dev/vda:40 GB, 42949672960 字节,83886080 个扇区
df -TH | grep ^/dev #查看分区
lspci | grep -i eth # 查看网卡
nload eth0 // 查看带宽网络情况 # Incoming也就是进入网卡的流量,Outgoing,也就是从这块网卡出去的流量 -- Curr:当前流量 -- Avg:平均流量 -- Min:最小流量 -- Max:最大流量 -- Ttl:总流量
- 以上参考自:https://juejin.im/post/5db5800df265da4d4c201cd7 列举一些常用的方便自己查看,其他的参考链接
- 命令查看服务器CPU 几核,逻辑CPU数,物理CPU数:https://www.cnblogs.com/xd502djj/archive/2011/02/28/1967350.html