davee_x

导航

编译打印输出重定向

1,既输出到屏幕又输出到文件

make -j4 | tee log_file

如果再次执行,log_file会被冲刷掉,若想追加,使用-a选项:

make -j4 | tee -a log_file

 

posted on 2015-05-27 10:26  Wigde.Xiao  阅读(258)  评论(0)    收藏  举报