输出在重定向到一个文件的同时,也在屏幕显示
tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件。
ls / | tee file wc -l
Copyright © 2023 Powered by MWeb, 湘ICP备2021013552号-1
TOP