[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