linux系统常用命令

cpu

lscpu命令,查看的是cpu的统计信息.

复制代码
blue@blue-pc:~$ lscpu
Architecture:          i686            #cpu架构
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian   #小尾序
CPU(s):                4               #总共有4核
On-line CPU(s) list:   0-3
Thread(s) per core:    1               #每个cpu核,只能支持一个线程,即不支持超线程
Core(s) per socket:    4               #每个cpu,有4个核
Socket(s):             1               #总共有1一个cpu
Vendor ID:             GenuineIntel    #cpu产商 intel
CPU family:            6
Model:                 42
Stepping:              7
CPU MHz:               1600.000
BogoMIPS:              5986.12
Virtualization:        VT-x            #支持cpu虚拟化技术
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              6144K
复制代码

 

查看/proc/cpuinfo,可以知道每个cpu信息,如每个CPU的型号,主频等。

复制代码
#cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 42
model name    : Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz
.....

查看系统硬盘大小


[root@erqwtfuser ~]# fdisk -l | grep Disk
Disk /dev/sda: 53.7 GB, 53687091200 bytes
Disk identifier: 0x0003c264
Disk /dev/mapper/vg_erqwtfugj-lv_root: 48.9 GB, 48930750464 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg_erqwtfugj-lv_swap: 4227 MB, 4227858432 bytes
Disk identifier: 0x00000000

 

 



posted @ 2017-06-21 10:07  我是传奇cfd  阅读(114)  评论(0编辑  收藏  举报