phper-linux-gitbook/netstat-system.md
2018-05-16 10:06:41 +08:00

192 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### uptime 命令
```
uptime #显示信息依次为:当前时间、系统运行时间、目前登录用户、系统在 1 分钟、5 分钟和 15 分钟内的负载。
```
#### free 命令
```
free -m #以 mb 统计系统内存
free -k #以 kb 统计系统内存
```
补充total总内存used已使用内存free空闲的内存shared 当前已经废弃不用buff/cache 缓存内存available 可用内存
#### du 命令
```
```
#### df 命令
```
```
#### top 命令
```
```
#### netstat 命令
```
```
#### ps 命令
```
```
#### lsof 命令
```
```
#### kill 命令
```
```
#### killall 命令
```
```
#### pkill 命令
```
```
#### ip 命令
```
```
#### ifconfig 命令
```
```
#### route 命令
```
```
#### env 命令
```
```
#### systemctl 命令
```
```
#### service 命令
```
```
#### chkconfig 命令
```
```
#### uname 命令
```
```
#### rboot 命令
```
```
#### halt 命令
```
```
#### shutdown 命令
```
```
#### dump 命令
```
```
#### dd 命令
```
```
#### ssh 命令
```
```
#### ping 命令
```
```
#### dig 命令
```
dig baidu.com #查看域名 dns 信息
```
#### host 命令
```
host baidu.com #查看域名的ip
```
#### whois 命令
```
whois baidu.com #查看域名信息
```
#### hostname 命令
```
hostname #查看主机名称
```