久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

Linux怎么查看CPU內(nèi)存和系統(tǒng)版本

共計(jì) 2640 個(gè)字符,預(yù)計(jì)需要花費(fèi) 7 分鐘才能閱讀完成。

這篇文章主要介紹了 Linux 怎么查看 CPU 內(nèi)存和系統(tǒng)版本的相關(guān)知識(shí),內(nèi)容詳細(xì)易懂,操作簡(jiǎn)單快捷,具有一定借鑒價(jià)值,相信大家閱讀完這篇 Linux 怎么查看 CPU 內(nèi)存和系統(tǒng)版本文章都會(huì)有所收獲,下面我們一起來(lái)看看吧。

Linux 查看 CPU 內(nèi)存和系統(tǒng)版本 1. 查看 CPU 信息

查看 CPU 信息的方式很多,我們這里分兩種情況來(lái)處理

1.1 查看 CPU 基本硬件信息

[whb@VM_0_12_centos test]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-26xx v4
stepping : 1
microcode : 0x1
cpu MHz : 2399.996
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch bmi1 avx2 bmi2 rdseed adx xsaveopt
bogomips : 4799.99
clflush size : 64
cache_alignment : 64
address sizes :

1.2 查看 CPU 使用狀態(tài)信息, top dstat

# 方法一
[whb@VM_0_12_centos test]$ top # 輸入 top 查看 CPU 使用情況, 可以輸入 1,查看多核 CPU 使用情況
asks: 74 total, 2 running, 72 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 1882892 total, 148092 free, 403032 used, 1331768 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 1274708 avail Mem 
 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 3677 root 20 0 162348 10684 1364 S 1.1 0.6 91:47.96 barad_agent
 3678 root 20 0 611460 13444 1484 S 1.1 0.7 462:59.39 barad_agent
 1 root 20 0 51644 3056 1840 S 0.0 0.2 12:14.31 systemd
 2 root 20 0 0 0 0 S 0.0 0.0 0:00.66 kthreadd
 3 root 20 0 0 0 0 S 0.0 0.0 2:00.04 ksoftirqd/0
[whb@VM_0_12_centos test]$ dstat -c # 不存在,centos 上可使用  yum -y install dstat  安裝 

2. 查看內(nèi)存信息

查看內(nèi)存信息的方式也很多,我們這里也分兩種情況來(lái)處理

2.1 查看內(nèi)存基本容量信息

[whb@VM_0_12_centos test]$ cat /proc/meminfo 
MemTotal: 1882892 kB
MemFree: 147760 kB
MemAvailable: 1275048 kB
Buffers: 165600 kB
Cached: 878652 kB
SwapCached: 0 kB
Active: 891404 kB
...

2.2 查看內(nèi)存運(yùn)行空間信息

[whb@VM_0_12_centos test]$ free 
 total used free shared buff/cache available
Mem: 1882892 403124 146836 544 1332932 1274648
Swap: 0 0 0
[whb@VM_0_12_centos test]$ free -k # 安裝 KB 為單位顯示
 total used free shared buff/cache available
Mem: 1882892 402988 146964 544 1332940 1274788
Swap: 0 0 0
[whb@VM_0_12_centos test]$ free -m # 安裝 MB 為單位進(jìn)行顯示
 total used free

3. 查看 Linux 查看系統(tǒng)版本

[whb@VM_0_12_centos test]$ uname -a
Linux VM_0_12_centos 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[whb@VM_0_12_centos test]$ cat /etc/redhat-release # 如果是 centos 機(jī)器,可以直接查看更細(xì)致版本
CentOS Linux release 7.5.1804 (Core)

關(guān)于“Linux 怎么查看 CPU 內(nèi)存和系統(tǒng)版本”這篇文章的內(nèi)容就介紹到這里,感謝各位的閱讀!相信大家對(duì)“Linux 怎么查看 CPU 內(nèi)存和系統(tǒng)版本”知識(shí)都有一定的了解,大家如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道。

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-14發(fā)表,共計(jì)2640字。
轉(zhuǎn)載說(shuō)明:除特殊說(shuō)明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請(qǐng)注明出處。
評(píng)論(沒(méi)有評(píng)論)
主站蜘蛛池模板: 苏州市| 拉萨市| 巴林左旗| 鱼台县| 兴义市| 镶黄旗| 融水| 綦江县| 开鲁县| 渭南市| 洞口县| 扶绥县| 崇礼县| 芦溪县| 南华县| 周口市| 曲麻莱县| 平南县| 岳普湖县| 南乐县| 开远市| 长子县| 嘉峪关市| 卢氏县| 南通市| 马鞍山市| 英德市| 日喀则市| 马边| 平塘县| 南木林县| 金川县| 贵州省| 霍林郭勒市| 南充市| 中山市| 金平| 舟曲县| 宁远县| 武义县| 都江堰市|