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 :随着文件数据的增加,不间断输出数据
时间: 2024-10-09 15:04:53