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'

原文地址:https://www.cnblogs.com/therunningfish/p/5411931.html