linux查询日志内容命令
摘要:1.查询日志中含有某个关键字的信息 cat app.log |grep 'error' 2.查询日志尾部最后10行的日志 tail -n 10 app.log 3.查询10行之后的所有日志 tail -n +10 app.log 4.查询日志文件中的头10行日志 head -n 10 app.log
阅读全文
posted @ 2020-04-08 13:05
posted @ 2020-04-08 13:05
posted @ 2017-01-14 10:21
posted @ 2017-01-14 10:09