TAIL(1) | 用户命令 | TAIL(1) |
tail - 输出文件的末尾部分
tail [选项]... [文件列表]...
将文件列表中每个文件的倒数10行内容输出至标准输出。如果指定多个文件,则会在每个文件的部分之前添加给定文件名称。
如果没有指定文件,或者指定文件为“-”,则从标准输入读取。
必选参数对长短选项同时适用。
NUM 后面可以加上乘数后缀:b 512、kB 1000、K 1024、MB 1000*1000、M 1024*1024, GB 1000*1000*1000、G 1024*1024*1024,T、P、E、Z、Y 以此类推。 也可以使用二进制前缀:KiB=K、MiB=M,以此类推。
With --follow (-f), tail defaults to following the file descriptor, which means that even if a tail'ed file is renamed, tail will continue to track its end. This default behavior is not desirable when you really want to track the actual name of the file, not the file descriptor (e.g., log rotation). Use --follow=name in that case. That causes tail to track the named file in a way that accommodates renaming, removal and creation.
由 Paul Rubin、David MacKenzie 和 Jim Meyering 编写。
GNU coreutils 的在线帮助:
<https://www.gnu.org/software/coreutils/>
请向 <https://translationproject.org/team/zh_CN.html>
报告翻译错误。
Copyright © 2022 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
本软件是自由软件:您可以自由修改和重新发布它。在法律允许的范围内,不提供任何保证。
head(1)
完整文档请见:<https://www.gnu.org/software/coreutils/tail>
或者在本地使用: info
'(coreutils) tail invocation'
本页面中文版由中文
man 手册页计划提供。
中文 man
手册页计划:https://github.com/man-pages-zh/manpages-zh
2022年9月 | GNU coreutils 9.1 |