[root@video ~]# ps -ef|grep httpd 用以顯示httpd程序的詳細資訊.
-e 顯示系統中的所有程序,除了核心程序
-f 顯示程序的詳細資訊
| 管道指令,前一個指令的輸出做為後一個指令的輸入
grep 查找字元 "httpd"
[root@video ~]# netstat -nat|grep -i "80"|wc -l
[root@video ~]# netstat -na|grep established|wc -l
[root@video ~]# netstat -n | awk '/^tcp/ {++s[$nf]} end {for(a in s) print a, s[a]}'
last_ack 33
syn_recv 120
close_wait 68
established 74
fin_wait1 94
fin_wait2 9
closing 84
time_wait 3297
[root@video ~]#
請輸入内容