Linux下查看cpu类型、内存大小、硬盘大小类型等

来源:互联网 发布:网络的利与弊反方辩词 编辑:程序博客网 时间:2024/06/05 02:43

作者:zhangxh1013

转自:http://blog.csdn.net/zhangxh1013/article/details/5586770


CPU查看:
1、  # dmesg | grep CPU
  Initializing CPU#0
  CPU: Trace cache: 12K uops
  CPU: L1 I-cache: 0K, L1 D-cache: 16K
  CPU: L2 cache: 256K
  Intel machine check reporting enabled on CPU#0.
  CPU: After generic, caps: bfebfbff 00000000 00000000 00000000
  CPU: Common caps: bfebfbff 00000000 00000000 00000000
  CPU: Intel(R) Celeron(R) CPU 2.53GHz stepping 01
  microcode: CPU0 updated from revision 0x0 to 0x12, date = 11222004
2、  # cat /proc/cpuinfo | grep name
  model name : Intel(R) Celeron(R) CPU 2.53GHz
3、  # rpm -q --queryformat "%{ARCH}/n" kernel
  i686

内存:# cat /proc/meminfo

硬盘:# df命令查看大小
#hdparm -i /dev/hda查看型号

4、dmidecode查看计算机的硬件信息(包括主板等)