星空网 > 软件开发 > 操作系统

Linux tee命令

一、简介

tee以标准输入作为输入,标准输出和文件作为输出。

 

二、语法

Usage: tee [OPTION]... [FILE]...Copy standard input to each FILE, and also to standard output. -a, --append       append to the given FILEs, do not overwrite -i, --ignore-interrupts  ignore interrupt signals   --help   display this help and exit   --version output version information and exitIf a FILE is -, copy again to standard output.

 

三、实例

1)使用tee命令把标准错误输出也保存到文件

ls "*" 2>&1 | tee ls.txt

 

参考:http://codingstandards.iteye.com/blog/833695




原标题:Linux tee命令

关键词:linux

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流