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

 

上一篇:Zabbix 5.0:监控阿里云RDS


下一篇:Scala 集合之list