linux tee命令

介绍

该命令将 另一个命令 的 输出内容,写入到文件中

所以 一般搭配 其他命令使用

例子

ls | tee 1.txt

将 ls 的结果,写入到 1.txt 中


原文出处:/show_1IXZ7WMObUu.html