其他分享
首页 > 其他分享> > tee命令

tee命令

作者:互联网

[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 ~]# 

 

标签:Fri,tee,server,命令,zabbix,test,txt,root
来源: https://www.cnblogs.com/liutaolt/p/15249751.html