-
make输出重定向
依据网址:
https://blog.csdn.net/u011852872/article/details/79079833
https://blog.csdn.net/Stephen_yu/article/details/82491226
https://blog.csdn.net/solid_sdu/article/details/79788729
https://blog.csdn.net/wjwzqcom/article/details/51594816
https://blog.csdn.net/yufenghyc/article/details/45671373
0 stdin,1 stdout,2 stderr
默认为1 stdout,标准输出。 -
make > make.log 2>&1
make结果到make.log,2为stderr,2>&1意为2的输出等同于1,到make.log
make > make.log 2>&1 等同于 make 1>make.log 2>&1
1>不能有空格,2>&1不能有空格 -
make 2>&1 | tee ../make.log
2>&1不能有空格
make默认输出到屏幕,2>&1意为2的输出等同于1,也到屏幕。
tee将输入输出到make.log
make输出重定向
最新推荐文章于 2022-09-28 21:58:03 发布