• <output id="aynwq"><form id="aynwq"><code id="aynwq"></code></form></output>

    <mark id="aynwq"><option id="aynwq"></option></mark>
  • <mark id="aynwq"><option id="aynwq"></option></mark><label id="aynwq"><dl id="aynwq"></dl></label>
  • 學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 電腦硬件知識 > CPU知識 > linux怎么查看cpu個數(shù)

    linux怎么查看cpu個數(shù)

    時間: 佳卓1096 分享

    linux怎么查看cpu個數(shù)

      關(guān)于筆記本電腦的硬件參數(shù) ,我們要怎么在linux怎么查看cpu個數(shù)?下面是學(xué)習(xí)啦小編為你整理相關(guān)的內(nèi)容,希望大家喜歡!

      linux查看cpu個數(shù)

      談到系統(tǒng)版本就一定會想到uname,查看系統(tǒng)內(nèi)核版本

      uname -參數(shù)

      其他的什么-n -m -r 參數(shù)都忽略,直接-a

      [root@linuxprobe ~]#uname -a

      Linux linuxprobe.com 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

      [root@linuxprobe ~]#

      從uname中貌似確實看到了許多信息,但是好像并不是我想要的,沒有哪個系統(tǒng)的哪個版本

      lsb_release -a

      [root@linuxprobe ~]# lsb_release -a

      LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

      Distributor ID: RedHatEnterpriseServer

      Description: Red Hat Enterprise Linux Server release 6.4 (Santiago)

      Release: 6.4

      Codename: Santiago

      [root@linuxprobe ~]#

      cat /etc/issue

      [root@linuxprobe ~]#cat /etc/issueRed Hat Enterprise Linux Server release 6.4 (Santiago)Kernel \r on an \m

      [root@linuxprobe ~]#

      查看內(nèi)存相關(guān)

      free

      一談到Linux的內(nèi)存就想到了一個命令free,在課本第2章 新手必須掌握的Linux命令中有對此的解釋

      [root@linuxprobe ~]# free total used free shared buffers cachedMem: 5228872 669360 4559512 0 28060 266936

      -/+ buffers/cache: 374364 4854508

      Swap: 4194296 0 4194296

      [root@linuxprobe ~]# free -m

      total used free shared buffers cached

      Mem: 5106 653 4452 0 27 260

      -/+ buffers/cache: 365 4740

      Swap: 4095 0 4095

      [root@linuxprobe ~]# free -g

      total used free shared buffers cached

      Mem: 4 0 4 0 0 0

      -/+ buffers/cache: 0 4

      Swap: 3 0 3

      [root@linuxprobe ~]#

      很明顯內(nèi)存大小,使用多少,剩余多少,buffers和cached多少,以及swap情況一目了然,使用參數(shù)-m/-g 可以指定單位

      查看cpu相關(guān)

      uptime

      [root@linuxprobe ~]# uptime

      20:09:48 up 43 min, 3 users, load average: 0.35, 0.25, 0.11 //系統(tǒng)的平均負載,1分鐘,5分鐘,15分鐘

      top

      實時監(jiān)控系統(tǒng)的cpu和內(nèi)存,默認3s刷新一次

      [root@linuxprobe ~]# top

      top - 20:15:41 up 49 min, 3 users, load average: 0.41, 0.38, 0.21

      Tasks: 236 total, 1 running, 235 sleeping, 0 stopped, 0 zombieCpu(s): 0.2%us, 0.5%sy, 0.0%ni, 98.8%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st

      Mem: 5228872k total, 671136k used, 4557736k free, 28324k buffers

      Swap: 4194296k total, 0k used, 4194296k free, 267360k cached

      PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

      1 root 20 0 19360 1536 1224 S 0.0 0.0 0:05.37 init

      2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd

      3 root RT 0 0 0 0 S 0.0 0.0 0:00.07 migration/0

      4 root 20 0 0 0 0 S 0.0 0.0 0:00.14 ksoftirqd/0

      5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0

      6 root RT 0 0 0 0 S 0.0 0.0 0:00.01 watchdog/0

      7 root RT 0 0 0 0 S 0.0 0.0 0:00.69 migration/1

      8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1

      9 root 20 0 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/1

      10 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/1

      11 root RT 0 0 0 0 S 0.0 0.0 0:00.10 migration/2

      12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/2

      13 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/2

      14 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/2

      15 root RT 0 0 0 0 S 0.0 0.0 0:00.17 migration/3

      16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/3

      17 root 20 0 0 0 0 S 0.0 0.0 0:00.06 ksoftirqd/3

      18 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/3

      19 root 20 0 0 0 0 S 0.0 0.0 0:00.41 events/0

      cpu內(nèi)存實時利用率以此為標準

      查看cpu參數(shù)——文件 :/proc/cpuinfo

      [root@linuxprobe ~]# cat /proc/cpuinfo | grep "physical id" | uniq | wc -l

      2 //cpu個數(shù)

      [root@linuxprobe ~]# cat /proc/cpuinfo | grep "cpu cores" | uniq

      cpu cores : 2 //線程數(shù)

      [root@linuxprobe ~]# cat /proc/cpuinfo | grep 'model name' |uniq

      model name : Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz //cpu型號參數(shù)

      查看硬盤相關(guān)

      df

      [root@linuxprobe ~]# df

      文件系統(tǒng) 1K-塊 已用 可用 已用% 掛載點

      /dev/sda2 41284928 469040 38718736 2% /

      tmpfs 2614436 224 2614212 1% /dev/shm

      /dev/sda1 99150 32504 61526 35% /boot

      /dev/sda6 516040 18016 471812 4% /home

      /dev/sda3 4128448 2542976 1375760 65% /usr

      [root@linuxprobe ~]# df -h //以簡單的看得懂的方式顯示文件系統(tǒng) 容量 已用 可用 已用%% 掛載點

      /dev/sda2 40G 459M 37G 2% /

      tmpfs 2.5G 224K 2.5G 1% /dev/shm

      /dev/sda1 97M 32M 61M 35% /boot

      /dev/sda6 504M 18M 461M 4% /home

      /dev/sda3 4.0G 2.5G 1.4G 65% /usr

      fdisk -l

      [root@linuxprobe ~]# fdisk -lDisk /dev/sda: 107.4 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylinders

      Units = cylinders of 16065 * 512 = 8225280 bytes

      Sector size (logical/physical): 512 bytes / 512 bytes

      I/O size (minimum/optimal): 512 bytes / 512 bytes

      Disk identifier: 0x000f0739

      Device Boot Start End Blocks Id System

      /dev/sda1 * 1 13 102400 83 Linux

      Partition 1 does not end on cylinder boundary.

      /dev/sda2 13 5235 41943040 83 Linux

      /dev/sda3 5235 5757 4194304 83 Linux

      /dev/sda4 5757 13055 58616832 5 Extended

      /dev/sda5 5757 6280 4194304 82 Linux swap / Solaris

      /dev/sda6 6280 6345 524288 83 Linux

      [root@linuxprobe ~]# fdisk -l | grep Disk

      Disk /dev/sda: 107.4 GB, 107374182400 bytes

      Disk identifier: 0x000f0739

      [root@linuxprobe ~]#

    3626791 主站蜘蛛池模板: 亚洲国产精品日韩专区av| 国产伦精品一区二区三区精品| 亚洲人成电影青青在线播放| 青青青国产精品一区二区| 成人一区专区在线观看| 亚洲欧美日韩电影| 黑人又大又硬又粗再深一点| 成人精品一区二区三区电影 | 国产视频一区二区在线播放| 五月婷婷激情网| 美女aⅴ高清电影在线观看| 在线一区免费视频播放| 久久精品国产亚洲7777| 精品久久久久久无码中文字幕| 国产精品欧美一区二区三区不卡 | 亚洲国产成人久久一区www| 象人族女人能吃得消吗| 女人与公拘交的视频www| 久久精品天天中文字幕人妻| 精品亚洲成a人无码成a在线观看| 国产精品无打码在线播放| 丰满少妇大力进入| 欧美疯狂性受xxxxx另类| 国产亚洲欧美一区二区三区| 99资源在线观看| 日韩中文字幕视频在线观看| 免费a级毛片在线播放| 欧美亚洲日本另类人人澡gogo| 性xxxxx欧美极品少妇| 亚洲午夜久久久影院伊人| 精品视频九九九| 国产精品h在线观看| 一本久久精品一区二区| 校花小雪和门卫老头阅读合集| 免费观看性行为视频的网站| 香蕉在线精品视频在线观看2| 国语自产精品视频在线区| 中文字幕乱码中文乱码51精品| 欧美乱大交XXXXX潮喷| 伊人久久大香线蕉综合影| 补课老师让我cao出水|