Linux tee命令
2015-12-01 21:30
519 查看
一、简介
tee以标准输入作为输入,标准输出和文件作为输出。
二、语法
三、实例
1)使用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 exit If a FILE is -, copy again to standard output.
三、实例
1)使用tee命令把标准错误输出也保存到文件
ls "*" 2>&1 | tee ls.txt
参考:/article/4053447.html
相关文章推荐
- linux下自己安装软件添加快捷方式
- 多线程
- 【Linux程序设计】之进程控制&守护进程
- linux远程访问
- centos启动流程[转]
- Linux作业控制
- 积跬步-至千里系列之一:Linux系统学习的一些初级命令
- 在CentOS7上安装Python3.5.0,及其与旧版本Python2.7.5的共存问题笔记
- linux 驱动理论学习阶段
- linux 用户、用户组不能是全数字
- linux中/etc与/var目录,各是什么意思?这两个目录下的文件有什么特点?
- linux0.11 内核启动代码分析(一)
- Linux下搭建SVN服务器
- Qt5.5.0编译移植到Linux-Arm-A9
- Linux-CentOS 安装FFmpeg
- linux图形界面编程基本知识(X11, xorg, gdm/gnome)
- linux 安装jdk
- centos 6.5安装杀毒软件clamav
- centos升级内核
- linux小知识