命令行查看日志

tail -f test.log 实时监控日志 tail -100f test.log 实时监控100行日志 tail -n 10 test.log 查看最后10行日志 tail -n +10 test.log 查看文件中行号10后边的日志 head -n 10 test.log 查看前10行日志
posted @ 2024-05-07 16:00  新手娃娃菜  阅读(16)  评论(0编辑  收藏  举报