为了方便查看make时产生的大量终端输出,有必要将终端输出保存为一个文件,这将大幅提高代码的阅读和调试效率。
命令tee就可以实现这个功能。
比如在终端输入 make |tee 1 就可以把make产生的终端输出全部记录在1这个文件中。
?tee - read from standard input and write to standard output and files ,This tool is usually called on through a pipe (| ).
为了方便查看make时产生的大量终端输出,有必要将终端输出保存为一个文件,这将大幅提高代码的阅读和调试效率。
命令tee就可以实现这个功能。
比如在终端输入 make |tee 1 就可以把make产生的终端输出全部记录在1这个文件中。
?tee - read from standard input and write to standard output and files ,This tool is usually called on through a pipe (| ).