linux 系统信息查看命令

查看系统版本:lsb_release -a
[root@localhost /]# lsb_release -a
LSB Version:    :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: CentOS
Description:    CentOS release 6.1 (Final)
Release:        6.1

Codename:       Final


查看内核版本:uname -a

Linux localhost.localdomain 2.6.32-131.0.15.el6.x86_64 #1 SMP Sat Nov 12 15:11:58 CST 2011 x86_64 x86_64 x86_64 GNU/Linux


查看cpu型号:cat /proc/cpuinfo
[root@localhost /]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           E5506  @ 2.13GHz
......
 
# 查看物理CPU个数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l


查看硬盘空间情况df -lm
 [root@localhost /]# df -l
文件系统                 1K-块      已用      可用 已用% 挂载点
/dev/sda3            604758736  20379244 553659492   4% /
 tmpfs                  8160484         0   8160484   0% /dev/shm
 /dev/sda1               495844     35901    434343   8% /boot
 /dev/sda5            302379456   4760128 282259328   2% /opt




查看内存:free -m 
 [root@localhost /]# free -mt
              total       used       free     shared    buffers     cached
 Mem:         15938      14204       1734          0        356      10597
 -/+ buffers/cache:       3250      12688
 Swap:        19997          0      19997
 Total:       35936      14204      21732

Swap为虚拟内存,当物理内存不够时,系统就会使用到swap,但swap速度比真实内存的速度要慢的多,当你电脑用到swap的时候,说明你内存不够了,需要加内存
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

WangLanguager

您的鼓励是对我最大的支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值