bash把所有屏幕输出重定向到文件并保持屏幕输出的方法时间:2023-03-09 05:43:51 输出到文件log中,并在屏幕上显示:#ls >&1 | tee log 追加输出到文件log中,并在屏幕上显示:#ls >&1 | tee -a log