码迷,mamicode.com
首页 > 系统相关 > 详细

linux命令-tail

时间:2016-01-30 03:08:32      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:linux命令-tail

tail :output the last part of files :输出文件尾部

tail参数:

    -c,--bytes=K :output the last K bytes; alternatively,  use  -c  +K  to  output bytes starting with the Kth of each file .    :输出文件至倒数K个字符,倒数K字符不会输出(文件每行有后缀)

    -n, --lines=K  :output the last K lines, instead of the last 10; or use -n +K to output lines starting with the Kth   :默认输出后10行。

    -f  :output appended data as the file grows; -f, --follow, and --follow=descriptor are equivalent  :随着文件数据的增加,不间断输出数据


linux命令-tail

标签:linux命令-tail

原文地址:http://fbzl1990.blog.51cto.com/9276609/1739925

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!