Linux内存及系统信息相关查看

[tom@paly ~]$free -m					#查看系统内存
             total       used       free     shared    buffers     cached
Mem:           496        481         14          0         31         27
-/+ buffers/cache:        422         73
Swap:         1023         68        955
[tom@paly ~]$vmstat 2 3
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0  69948  15108  32556  27880    0    3    11     4   16   33  0  0 100  0  0
 0  0  69948  15108  32556  27880    0    0     0     0   25   51  0  0 100  0  0
 0  0  69948  15108  32556  27880    0    0     0     0   25   53  0  0 100  0  0
[tom@paly ~]$ uptime
 17:34:02 up  6:52,  1 user,  load average: 0.00, 0.00, 0.00
cat /proc/cpuinfo
locale -a         #查看系统支持语言

LANG=zh_CN

 uptime 系统运行时间
vmstat 2 3  监听3次系统,每次间隔2秒
yum install redhat-lsb
 lsb_release -a   查看系统发行版本
sestatus       #查看selinux的状态

#可以编辑selinux配置文件
vi /etc/sysconfig/selinux


[root@ton home]#runlevel 
N 3        N代表前一个运行级别 


/etc/sysctl.conf     内核配置文件
/etc/security/limits.conf         调整最大打开系统文件个数

getconf LONG_BIT        #查看系统位数

查看电池电量

[tom@suse-tom ~]$cat /sys/class/power_supply/BAT0/capacity
100
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值