linux之简单查找日志

========================linux 查找========================

find / -name  .schema.xml.swp  冲根目录查找

 find / -iname '*.cnf' -print

find / | grep nginx.conf

 

========================linux 查找========================

通常查找出错误日志 cat error.log | grep 'nick'

cat mapred-site.xml | grep -n5 "webapp"    //相关内容下面的5行

 

posted @ 2018-06-27 15:07  zsls-lang  阅读(150)  评论(0编辑  收藏  举报