服务排查 Linux常用操作 · 2022-03-02 · # 运维 lsof 查找日志路径 lsof -i [pid] | grp log 查询不规则日志 获取行号 grep -n "[条件]" ./hello.txt 查询内容 sed -n '[开始行号],[结束行号]p' ./hello.txt