首页 > 系统服务 > 详细

Linux tee命令

时间:2015-12-01 23:02:31      阅读:266      评论:0      收藏:0      [点我收藏+]

一、简介

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 exit

If a FILE is -, copy again to standard output.

 

三、实例

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

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

 

Linux tee命令

原文:http://www.cnblogs.com/274914765qq/p/5011375.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!