首页 > 其他 > 详细

tee命令

时间:2021-09-12 13:29:52      阅读:24      评论:0      收藏:0      [点我收藏+]
[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 ~]# 

 

tee命令

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!