Linux常用命令

// 实时查看日志信息

tail -100f app-mbp-c.log

// 实时查看多个相关接口字符串的日志信息

tail -100f 'app-mbp-c.log' | grep -E 'bizType: "M125"|bizType: "M283"|bizType: "M277"'

// 实时查看通一行同时包含多个字符串的日志信息

tail -100f 'app-mbp-c.log' | xargs grep 'bizType: "M125' | grep '15152205220'

// 非实时全部查看同一行同时包含某字符串的日志信息

find -name 'app-mbp-c.log' | xargs grep  'bizType: "M125' | grep '15152205220'

posted @ 2016-04-20 11:36  TheRunningfish  阅读(164)  评论(0编辑  收藏  举报