1.ifconfig
格式:ifconfig[网络设备][参数]
代码语言:javascript复制[root@linuxprobe Desktop]# ifconfig
eno16777728: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:0c:29:09:0e:a4 txqueuelen 1000 (Ethernet)
RX packets 29859 bytes 2122610 (2.0 MiB)
RX errors 0 dropped 872 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 770 bytes 62348 (60.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 770 bytes 62348 (60.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2.uname
用于查看系统内核与系统版本等信息,格式:uname[-a]
代码语言:javascript复制[root@linuxprobe Desktop]# uname -a
Linux linuxprobe.com 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
代码语言:javascript复制[root@linuxprobe Desktop]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
3.uptime
查看系统负载信息
格式 uptime
代码语言:javascript复制[root@linuxprobe Desktop]# uptime
15:28:36 up 28 min, 2 users, load average: 0.00, 0.06, 0.11
4.free
显示当前系统中内存使用量信息
格式:free [-h]
代码语言:javascript复制[root@linuxprobe Desktop]# free -h
total used free shared buffers cached
Mem: 979M 883M 96M 7.8M 928K 299M
-/ buffers/cache: 583M 396M
Swap: 2.0G 0B 2.0G
5.who
查看当前登入主机的用户终端信息,
格式:who [参数]
代码语言:javascript复制[root@linuxprobe Desktop]# who
linuxprobe :0 2018-06-07 15:02 (:0)
linuxprobe pts/0 2018-06-07 15:02 (:0)
6.last
用于查看所有系统登录记录
格式:last[参数]
7.history
用于显示历史执行过的命令
格式:history [-c]
8.sosreport
用于收集系统配置及架构信息并输出诊断文档
格式:sosreport