如果你想把标准输出和错误输出都重定向到一个文件,那么命令如下:
command 2>&1 | tee -a log
https://blog.csdn.net/codingstandards/article/details/83774388?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control
https://zhang0peter.blog.csdn.net/article/details/90573567