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 |