grep, cut, sed, sort, awk运用
摘要:1. 基础的日志查看命令 tail -400f demo.log #监控最后400行日志文件的变化 等价 tail -n 400 -f (-f参数是实时) less demo.log #查看日志文件,支持上下滚屏,查找功能 uniq -c demo.log #标记该行重复的数量,不重复值为1 2.
阅读全文
posted @ 2019-09-30 18:34