文章目录 1.查看日志常用命令 tail head cat grep 2.进程管理 1.查看日志常用命令 tail 实时监控100行日志 tail -100f test.log 查询日志尾部10行日志 tail -10 test.log head 查询日志中头10行日志 head -10 test.log cat 查询关键字的行号 cat -n test.log | grep error grep 查询关键字 grep error test.log 查询关键字的行数 grep