Linux查看文件内容 1 查看文件的前多少行 head -100 app.log 2 查看文件的后多少行 tail -100 app.log 3 查看文件的几行到几行 sed -n '10,100p' app.log