建立于: 1年前 ( 更新: 1年前 )
CPU数据
查CPU,查model name及cpu数(几核)
cat /proc/cpuinfo |grep 'model name'|tail -n1
cat /proc/cpuinfo |grep 'model name'|wc -l
操作画面
# cat /proc/cpuinfo |grep 'model name'|tail -n1
model name : Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
# cat /proc/cpuinfo |grep 'model name'|wc -l
24
如果有lscpu命令,可取更新清楚的信息
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 46 bits physical, 48 bits virtual
CPU(s): 24
On-line CPU(s) list: 0-23
Thread(s) per core: 2
Core(s) per socket: 12
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
Stepping: 7
底下....略.....
内存
查内存有多少
grep MemTotal /proc/meminfo
egrep 'MemTotal|MemFree|MemAvailable' /proc/meminfo
实际操作画面
$ egrep 'MemTotal|MemFree|MemAvailable' /proc/meminfo
MemTotal: 82024272 kB
MemFree: 51008940 kB
MemAvailable: 74909208 kB
如果有free命令可用如下命令,更清楚
$free -h
total used free shared buff/cache available
Mem: 78Gi 4.1Gi 48Gi 1.8Gi 25Gi 71Gi
Swap: 8.0Gi 0B 8.0Gi
硬盘空间
磁盘可用df命令检测
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 7.9G 6.6M 7.9G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 98G 35G 58G 38% /
tmpfs 40G 0 40G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda2 2.0G 248M 1.6G 14% /boot
/dev/sda1 1.1G 5.3M 1.1G 1% /boot/efi
tmpfs 7.9G 4.0K 7.9G 1% /run/user/0
tmpfs 7.9G 4.0K 7.9G 1% /run/user/1000
如果要漂亮的画面我们也可以用neofetch速查,通常需另行安装。
例如:
Manjaro Linux会像这样
No Comment
Post your comment