输出到文件log中,并在屏幕上显示:
#ls >&1 | tee log
追加输出到文件log中,并在屏幕上显示:
#ls >&1 | tee -a log
转载于:https://www.cnblogs.com/emanlee/p/3421047.html
输出到文件log中,并在屏幕上显示:
#ls >&1 | tee log
追加输出到文件log中,并在屏幕上显示:
#ls >&1 | tee -a log
转载于:https://www.cnblogs.com/emanlee/p/3421047.html