Linux 常用命令

** 查看文件前200行
head -100 test.log
** 查看文件后200行
tail -200 test.log
** 查看中间200行
sed -n ‘100,200p’ test.log

** 输出到文件
tail -200 test.log >tail200.log

posted @ 2018-09-06 12:15  影随风动91  阅读(10)  评论(0)    收藏  举报