Linux 应用服务器上查找日志,定位错误的识用技巧

tail tail  -n  10  test.log   查询日志尾部最后10行的日志;vim tail -n +10 test.log    查询10行以后的全部日志;less head head -n 10  test.log   查询日志文件中的头10行日志;ssh head -n -10  test.log   查询日志文件除了最后10行的其余全部日志;编辑器 cat cat -n te
相关文章
相关标签/搜索