编译打印输出重定向 1,既输出到屏幕又输出到文件 make -j4 | tee log_file 如果再次执行,log_file会被冲刷掉,若想追加,使用-a选项: make -j4 | tee -a log_file http://www.cnblogs.com/skynext/