[]linux就该这么学]第三天上课笔记---系统状态检测命令
1、系统状态检测命令
1)ifconfig命令
获取网卡配置与网络状态信息
格式:ifcongfig [网络设备] [参数]
[root@linuxprobe ~]# ifconfig
eno16777728: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.10 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::20c:29ff:fec4:a409 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:c4:a4:09 txqueuelen 1000 (Ethernet)
RX packets 36 bytes 3176 (3.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 38 bytes 4757 (4.6 KiB)
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 386 bytes 32780 (32.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 386 bytes 32780 (32.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2)uname命令
用于查看系统内核与系统版本等信息
格式:uname [-a]
[root@linuxprobe ~]# uname -a
Linux linuxprobe.com 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2017
x86_64 x86_64 x86_64 GNU/Linux
3)uptime命令
用于查看系统的负载信息
格式:uptime
[root@linuxprobe ~]# uptime
22:49:55 up 10 min, 2 users, load average: 0.01, 0.19, 0.18
4)free命令
用于显示当前系统中内存的使用情况
格式:free [-h]
[root@linuxprobe ~]# free -h
| 内存总量 | 已用量 | 可用量 |
进程共享的 内存量 |
磁盘缓存的 内存量 |
缓存的 内存量 |
|
| total | used | free | shared | buffers | cached | |
| Mem | 1.8G | 1.3G | 542M | 9.8M | 1.6M | 413M |
| -/+ buffers/cache | 869M | 957M | ||||
| Swap | 2.0G | 0 | 2.0G |

浙公网安备 33010602011771号