FreeBSD常用指令整理(学习笔记)
1、查看 CPU:
sysctlhw.modelhw.ncpu
dmesg|grep"CPU:"
2、查看内存:
dmesg|grep "real memory"|awk -F '[()]' '{print$2,$4,$7,$8}'
查看 swap:
top|grep"Swap:"|awk'{print$1,$2}'
3、查看硬盘:
diskinfo
赞 (0)
1、查看 CPU:
sysctlhw.modelhw.ncpu
dmesg|grep"CPU:"
2、查看内存:
dmesg|grep "real memory"|awk -F '[()]' '{print$2,$4,$7,$8}'
查看 swap:
top|grep"Swap:"|awk'{print$1,$2}'
3、查看硬盘:
diskinfo