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型号,内存大小,硬盘空间,进程等的命令(详解)

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

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

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

  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 1.2 查看CPU核数 # ...

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

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

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

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

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

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

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

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

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

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

随机推荐

  1. 锋利的JQuery-Jquery选择器

    1.css选择器 标签选择器:a{...} id选择器:#note{...} 类选择器:div.note{..}..dream{...} 群组选择器:td,p,div,a{...} 后代选择器: #l ...

  2. 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)的解决办法

    使用的python2.7,运行的时候出现了'ascii' codec can't encode characters in position 0-8: ordinal not in range(128 ...

  3. bzoj1061: [Noi2008]志愿者招募

    线性规划与费用流.http://www.cnblogs.com/iiyiyi/p/5616080.html.数组范围开错了!!!然后2.31-1=0x7fffffff!=0x7f7f7f7f. 开始以 ...

  4. C# 实例化顺序

    static class Program { static void Main() { BaseB baseb = new BaseB(); baseb.MyFun(); Console.ReadKe ...

  5. css页面重构面试题

    偶然间又看到博客园中这两道页面重构面试题.题一:分别用2个DIV,3个DIV,5个DIV实现水平垂直均居中显示一个宽50px,高200px的正十字架.思路:水平垂直均居中的实现,当然非absolute ...

  6. andorid 进度条

    SeekBar类似于ProgressBar,但是ProgressBar的主要功能是让用户知道目前的状态,而SeekBar的功能在于让用户调整进度,举个例子,在音乐播放器中,可以通过调整SeekBar来 ...

  7. 关于.jar的文件在cmd中无法连接数据库的问题

    我使用一个.jar的文件,想在cmd中以“java -jar *.jar”的格式运行,方便system.println()一些信息,该jar包中包含数据库连接内容,在我关闭comodo防火墙和wind ...

  8. 【mongodb 学习一】环境搭建之 mac 下连接 mongodb 的UI 客户端

    记录下 mongodb 的学习 懒得自己达 mongodb 的服务器了 虽然一句命令就能搞定了 brew install mongodb 可是考虑到以后的应用还是放在网上的,就直接用现成的服务吧 下载 ...

  9. STM32之CAN ---CAN ID过滤器分析

      1 前言 在CAN协议里,报文的标识符不代表节点的地址,而是跟报文的内容相关的.因此,发送者以广播的形式把报文发送给所有的接收者.节点在接收报文时,根据标识符(CAN ID)的值决定软件是否需要该 ...

  10. .net之单元测试

    一.单元测试的目的是为了提高项目的质量 二..net单元测试的实施步骤是:在已经创建的类文件的某个方法上右键-->选择创建单元测试-->系统会创建单元测试解决方案--->单元测试解决 ...