ifconfig 获取网卡配置与网络状态
uname 查看系统内核与系统版本
[root@localhost home]# uname -a
Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
uptime 查看系统负载
[root@localhost home]# uptime
00:44:56 up 65 days, 2:01, 3 users, load average: 0.00, 0.03, 0.05
显示当前系统时间、系统运行时间、终端数量、平均负载(1分钟、5分钟、15分钟内的压力),负载值越低越好
free 查看内存使用量
[root@localhost home]# free -h
total used free shared buffers cached
Mem: 30G 4.5G 25G 119M 1.8M 2.7G
-/+ buffers/cache: 1.8G 28G
Swap: 4.0G 0B 4.0G
total 总内存量
used 已用内存量
free 可用内存量
shared 进程共享内存量
buffers 磁盘缓存内存量
cached 缓存内存量
who 查看当前登录的用户终端
显示用户名、终端设备、登录时间
last 查看登录记录
history 查看历史命令
查看最近10条命令
[root@localhost home]# history 10
62 pidof httpd
63 ifconfig
64 uname
65 uname -a
66 uptime
67 free
68 free -h
69 who
70 history
71 history 10
清空历史命令
history -c