1 查看CPU

  1.1 查看CPU个数

  # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l

  2

  **uniq命令:删除重复行;wc –l命令:统计行数**

  1.2 查看CPU核数

  # cat /proc/cpuinfo | grep "cpu cores" | uniq

  cpu cores : 4

  1.3 查看CPU型号

  # cat /proc/cpuinfo | grep 'model name' |uniq

  model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz

  总结:该服务器有2个4核CPU,型号Intel(R) Xeon(R) CPU E5630 @ 2.53GHz

  2 查看内存

  2.1 查看内存总数

  #cat /proc/meminfo | grep MemTotal

  MemTotal: 32941268 kB //内存32G

  2.2 查看内存条数

  本节内容引自新浪博文《Linux查看内存条数》

  查看原文:

  # dmidecode |grep -A16 "Memory Device$"

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: 2048 MB //1条2G内存

  Form Factor: DIMM

  Set: 1

  Locator: DIMM1

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: 667 MHz

  Manufacturer: 7F7F7F7F7F510000

  Serial Number: 0403E324

  Asset Tag: 450721

  Part Number: 72T256220HR3SA

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: 2048 MB //1条2G内存

  Form Factor: DIMM

  Set: 1

  Locator: DIMM2

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: 667 MHz

  Manufacturer: 7F7F7F7F7F510000

  Serial Number: 0403E324

  Asset Tag: 450721

  Part Number: 72T256220HR3SA

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 2

  Locator: DIMM3

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 2

  Locator: DIMM4

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 3

  Locator: DIMM5

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  --

  Memory Device

  Array Handle: 0x1000

  Error Information Handle: Not Provided

  Total Width: 72 bits

  Data Width: 64 bits

  Size: No Module Installed //1个内存空槽

  Form Factor: DIMM

  Set: 3

  Locator: DIMM6

  Bank Locator: Not Specified

  Type: DDR2

  Type Detail: Synchronous

  Speed: Unknown

  Manufacturer:

  Serial Number:

  Asset Tag:

  Part Number:

  总结:该服务器有两条2G内存 ,空余4个插槽

  3 查看硬盘

  3.1 查看硬盘大小

  # fdisk -l | grep Disk

  Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes

  总结:硬盘大小146.7G,即厂商标称的160G

Linux下查看CPU型号,内存大小,硬盘空间命令的更多相关文章

  1. Linux下查看CPU型号,内存大小,硬盘空间命令

    1 查看CPU 1.1 查看CPU个数 # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l 2 **uniq命令:删除重 ...

  2. Linux下查看CPU型号,内存大小,硬盘空间,进程等的命令(详解)

    转自:http://www.jb51.net/article/97157.htm 1 查看CPU 1.1 查看CPU个数 # cat /proc/cpuinfo | grep "physic ...

  3. Linux下查看CPU型号,内存大小,硬盘空间的命令

    1 查看CPU 1.1 查看CPU个数 # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l 2 **uniq命令:删除重 ...

  4. Linux下查看CPU型号,内存大小,硬盘空间的命令(详解)

    1 查看CPU 1.1 查看CPU个数 # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l 2 **uniq命令:删除重 ...

  5. Linux 查看CPU型号,内存大小,硬盘空间的命令

    1 查看CPU 1.1 查看CPU个数 # cat /proc/cpuinfo | grep "physical id" | uniq | wc -l 1.2 查看CPU核数 # ...

  6. Linux下查看CPU、内存和硬盘信息命令

    一.查看cpu信息 cat /proc/cpuinfo 相同physical id 的记录是属于同一个CPU的,对应于多核的信息. 二.查看内存的信息 cat /proc/meminfo 三.查看硬盘 ...

  7. linux下查看cpu,内存,硬盘等硬件信息的方法

    说明:Linux下可以在/proc/cpuinfo中看到每个cpu的详细信息.但是对于双核的cpu,在cpuinfo中会看到两个cpu.常常会让人误以为是两个单核的cpu. 一.linux CPU大小 ...

  8. 【转载】Linux下查看CPU、内存占用率

    不错的文章(linux系统性能监控--CPU利用率):https://blog.csdn.net/ctthuangcheng/article/details/52795477 在linux的系统维护中 ...

  9. Linux下查看CPU和内存(很详细)

    在系统维护的过程中,随时可能有需要查看 CPU 使用率,并根据相应信息分析系统状况的需要.在 CentOS 中,可以通过 top 命令来查看 CPU 使用状况.运行 top 命令后,CPU 使用状态会 ...

随机推荐

  1. iOS开发-使用代码退出应用程序,带动画。

    有时候我们需要使用代码中断程序,如果直接调用exit方法,会使得程序就像是崩溃那样,因此我们应该加上一个动画效果. 例如: AppDelegate *app = [UIApplication shar ...

  2. Mysql纯命令行添加用户及权限

    原文链接:http://hi.baidu.com/ngy1991/item/45978bd05d82c7ea785daa42 创建用户: 命令: 1 CREATE USER 'username'@'h ...

  3. js var ImgObj=new Image();

    API地址: 1 https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement 下面来看看Image到底是个什么东东,我先将Ima ...

  4. php 实现 html转js

    [php] <?php function htmltojs($str){ $re=''; $str=str_replace('\','\\',$str); $str=str_replace(&q ...

  5. jQuery 实现观察者模式

    github: https://github.com/mmikowski/jquery.event.gevent demo: $('body').append( "<div id='s ...

  6. sublime text 3 修改侧边栏字体

    安装PackageResourceViewer快捷键 Ctrl+Shift+P 打开 Command Palette 输入 Package Control:Install 回车, 等待加载packag ...

  7. Atitit. camel分词器 分词引擎 camel拆分 的实现设计

    Atitit. camel分词器 分词引擎 camel拆分 的实现设计 1. camel分词器1 1.1. 实现的界定符号大写字母小写字母数字1 1.2. 特殊处理 对于JSONObject 多个大写 ...

  8. jstat -gcutil pid millsec

      1. jstat -gc pid 可以显示gc的信息,查看gc的次数,及时间. 其中最后五项,分别是young gc的次数,young gc的时间,full gc的次数,full gc的时间,gc ...

  9. AD使用技巧

    1. 效果显示 3 显示3D效果,2显示2D效果. 2.  阻焊塞孔 双击过孔显示属性  solder Mask Expansions Force complete tenting on top Fo ...

  10. Who's in the Middle - poj 2388 (快速排序寻找中位数)

    题意; 寻找中位数 利用快速排序来寻找中位数. #include <iostream> using namespace std; int N; ]; int Median(int left ...