linux 服务器项目排查命令

121 阅读1分钟

搜索日志字符串

## 搜索 api.log 文件中的 xxx.err 字符串上下 20 行
grep -C 20 "19983181508" api.log