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