#直接覆盖日志文件   
ls -l | tee ./t.log   
#将输出内容附加到日志文件   
ls -l | tee -a ./t.log

使用的是tee命令

==>如有问题,请联系我:easonjim#163.com,或者下方发表评论。<==
Logo

更多推荐