命令格式:
tail 【参数】 【文件】
1. 显示文件最后10行
tail test.log
2. 跟踪名为 notes.log 的文件的增长情况,直到您按下(Ctrl-C)组合键停止显示
tail -f test.log
3. 显示文件 的内容,从第 20 行至文件末尾
tail +20 test.log
4. 显示文件的最后 10 个字符
tail -c 10 test.log
tail 【参数】 【文件】
tail test.log
tail -f test.log
tail +20 test.log
tail -c 10 test.log
本文标题:【linux命令之tail】
本文链接:https://www.haomeiwen.com/subject/ygqwkctx.html
网友评论