查异常 cat -n abc.log |grep Exception|more 如找到行数为:5201314行,再查看该行前后的异常信息 cat -n abc.log |tail -n +5201314|head -n 30
以下图片 出自菜鸟教程: http://www.runoob.com/linux/linux-comm-tail.html
http://www.runoob.com/linux/linux-comm-cat.html
命令解说:
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!