当前位置: 首页 > news >正文

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
  -p                        diagnose errors writing to non pipes
      --output-error[=MODE]   set behavior on write error.  See MODE below
      --help     display this help and exit
      --version  output version information and exit
 

example:

        env | tee -a 1.txt

        echo "----start install ..." 2>&1 |  tee -a 1.txt


http://www.mrgr.cn/news/16443.html

相关文章:

  • 【机器学习】.fit_transform()跟.transform()的区别
  • 最小栈
  • NC 二分查找-II
  • 华为云征文|部署个人博客管理系统 Ghost
  • SAM 提示框和 Unet的语义分割的融合:自动驾驶车道线分割
  • Golang时间格式化的陷阱与解决方案
  • 【无人机设计与控制】使用 Simulink 进行四轴飞行器/四旋翼飞行器仿真
  • Windows系统中批量管理Windows服务器远程桌面工具——RDCMan
  • macos OneNote 2016 for Mac 官方pkg下载地址 - macos 10.15 Catalion 可用Onenote版本官方下载地址
  • 华为云征文|基于Flexus云服务器X实例部署caddy的教程
  • 【多线程】设计模式之单例模式
  • sicp每日一题[1.38]
  • 【CSP:202104-2】邻域均值(Java)
  • 【Python系列】SQLAlchemy 基本介绍
  • SPR系列单点激光雷达测距传感器|模组之CAN-OPEN软件调试说明
  • ​字​节​一​面​
  • Vue.js入门系列(十九):深入理解和应用组件自定义事件
  • [ABC133A] T or T
  • 23. 如何使用Collections.synchronizedList()方法来创建线程安全的集合?有哪些注意事项?
  • 设计模式之外观模式