摘要:
find ./ -path 排除目录 -prune -o -name "*" 阅读全文
摘要:
if[! -f ip.txt];then exit fi if[-z "$1"];then exit fi count=`cat ip.txt|wc -l` rm -rf ip.txt.swp i=0 while((i<$count)) do i=`expr $i +1` sed"${i}s/^/& 阅读全文
摘要:
IP_ADDR=`tail -n 100 /var/log/secure |grep "Failed password"| egrep -o "([0-9]{1,3}\.){3}[0-9]{1,3}"|sort -nr|uniq -C|awk '$1>=10 {print $2}'` IPTABLE 阅读全文
摘要:
bin=`dirname "$0"`bin=`cd "$bin"; pwd` . /home/d50001/ZHBR/opensource/hadoop-1.0.4/hadoop-1.0.4/bin 阅读全文
摘要:
ifconfig 279 17:28 ifconfig eth0 280 17:29 ifconfig eth0 | sed -n '2p' 281 17:31 ifconfig eth0 | sed -n '2p' | sed 's#inet addr:##g' 282 17:32 ifconfi 阅读全文
摘要:
egrep "god|good" ll.txt egrep "g(oo|al)d" ll.txt 阅读全文
摘要:
visudo 可以给用户添加命令权限(vi /etc/sudoers ) -c 可以检查添加到sudoers文件的语法 mm ALL=(ALL) NOPASSWD:ALL 阅读全文