Linux下Shell命令的输出信息同时显示在屏幕和保存到日志文件中

#直接覆盖日志文件 ls -l | tee ./t.log #将输出内容附加到日志文件 ls -l | tee -a ./t.log 使用的是tee命令post
相关文章
相关标签/搜索