Scroll to navigation

TEE(1) 用戶命令 TEE(1)

名稱

tee - 從標準輸入讀入並寫往標準輸出和文件

概述

tee [選項]... [文件列表]...

描述

把標準輸入的數據複製到文件列表中的每一個文件,同時送往標準輸出。
-a, --append
追加到給出的文件,而不是覆蓋
-i, --ignore-interrupts
忽略中斷信號
-p
對寫入非管道的行爲排查錯誤
--output-error[=模式]
設置寫入出錯時的行爲。見下面“模式”部分
--help
顯示此幫助信息並退出
--version
顯示版本信息並退出

模式確定向輸出寫入出錯時的行爲:

'warn'
對向任何文件輸出出錯的情況進行診斷
'warn-nopipe'
對向除了管道以外的任何文件輸出出錯的情況進行診斷
'exit'
一旦輸出出錯,則退出程序
'exit-nopipe'
一旦輸出出錯且非管道,則退出程序

-p 選項的默認模式是“warn-nopipe”。當 --output-error 沒有給出時,默認的操作是在向管道寫入出錯時立刻退出,且在向非管道寫入出錯時對問題進行診斷。

作者

由 Mike Parker, Richard M. Stallman 和 David MacKenzie 編寫。

報告錯誤

GNU coreutils 的在線幫助: <http://www.gnu.org/software/coreutils/>
請向 <http://translationproject.org/team/zh_CN.html> 報告 tee 的翻譯錯誤。

版權

Copyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

參見

完整文檔請見: <http://www.gnu.org/software/coreutils/tee>
或者在本地使用: info '(coreutils) tee invocation'

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
2017年10月 GNU coreutils 8.28