tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件 。
语法格式:tee [参数] [文件]
常用参数:
-a | 附加到既有文件的后面,而非覆盖它 |
-i | 忽略中断信号 |
— help | 查看帮助信息 |
— version | 显示版本信息 |
参考实例
使用指令”tee”将用户输入的数据同时保存到文件”file1″和”file2″中,输入如下命令:
[[email protected] ~]# tee file1 file2
');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-image :where(.has-border-color){border-style:solid}.wp-block-image :where([style*=border-top-color]){border-top-style:solid}.wp-block-image :where([style*=border-right-color]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-color]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-color]){border-left-style:solid}.wp-block-image :where([style*=border-width]){border-style:solid}.wp-block-image :where([style*=border-top-width]){border-top-style:solid}.wp-block-image :where([style*=border-right-width]){border-right-style:solid}.wp-block-image :where([style*=border-bottom-width]){border-bottom-style:solid}.wp-block-image :where([style*=border-left-width]){border-left-style:solid}.wp-block-image figure{margin:0}/*]]>*/
tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件 。
语法格式:tee [参数] [文件]
常用参数:
-a | 附加到既有文件的后面,而非覆盖它 |
-i | 忽略中断信号 |
— help | 查看帮助信息 |
— version | 显示版本信息 |
参考实例
使用指令”tee”将用户输入的数据同时保存到文件”file1″和”file2″中,输入如下命令:
[[email protected] ~]# tee file1 file2