find . -name "*.jsp"
递归查找当前目录下包含IAM字符串的所有jsp文件
find . -name "*.jsp"|xargs grep "IAM"
仅仅找当前所有文件里包含IAM的文件
grep "IAM" *
引用
(这条命令可以找jar包里类名)
/lib/ grep AdamSuperClass *
结果可能是:
AdamSuperClass Add.jar.
/lib/ grep AdamSuperClass *
结果可能是:
AdamSuperClass Add.jar.
解压所有jar包
for i in `find . -name "*.jar"`
do
unzip $i
done
search all sgipb threads.
ps -ef | grep wbrsit-sgipb-svr1
kill forcefully.
kill -p pid
view port
netstat -an|grep port
这个命令在xp是 netstat -aon|findstr port