Linux踢出已登录用户的方法

# pkill -KILL -t pts/0 (pts/0为w指令看到的用户终端号)


同时过滤多个字符串

 

#grep -E -v '(xx|yy)' urfile


        按照出现的次数排序
#cat filename | awk {'print $NF'} | sort | uniq -c | sort -nr

     find排除查找目录
#find . \(  -path './phpcms' -o -path './templets' \) -prune -o -name "list*.html" -print 

     查找PHP木马
#
find ./ -name "*.php" -type f -print0|xargs -0 egrep "(phpspy|c99sh|milw0rm|eval\(base64_decode|spider_bc)"|awk -F: '{print $1}'|sort|uniq