tee命令

时间:2021-09-12 13:29:52   收藏:0   阅读:19
[root@zabbix-server ~]# cat test.txt
Fri Sep 10 07:33:23 CST 2021
[root@zabbix-server ~]# pwd | tee -a test.txt 
/root
[root@zabbix-server ~]# cat test.txt
Fri Sep 10 07:33:23 CST 2021
/root
[root@zabbix-server ~]# echo "this ia nginx_install jiaobeng" | tee -a test.txt 
this ia nginx_install jiaobeng
[root@zabbix-server ~]# cat test.txt
Fri Sep 10 07:33:23 CST 2021
/root
this ia nginx_install jiaobeng
[root@zabbix-server ~]# 

 

原文:https://www.cnblogs.com/liutaolt/p/15249751.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!