常用shellコマンド整理
558 ワード
ls|xargs du -h|sort -rn # ,
pgrep nginx|xargs kill # pid kill
utmpdump /var/log/wtmp # wtmp ,
httpd -M # Apache
php -m # php
httpd -t # Apache
nginx -t # nginx
tcpdump -s0 -A -n -i any|grep -o -E '(GET|POST|HEAD).*' #
tcpdump -s0 -A -n -i any|grep ^User-Agent # User-Agent
# DDoS
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
/usr/local/ddos/ddos.sh -c