摘要: 1.查询日志中含有某个关键字的信息 cat app.log |grep 'error' 2.查询日志尾部最后10行的日志 cat -n 10 app.log 3.查询日志文件头10行的日志 head -n 10 app.log 4.查询10行之后的所有日志 tail -n +10 app.log 5 阅读全文
posted @ 2021-01-27 11:43 GAOLANG 阅读(1372) 评论(0) 推荐(0) 编辑