如何将unix程序的输出(常规或错误)记录到文件中

use*_*674 1 unix

如何将Unix程序的输出(常规或错误)记录到文件中?

mat*_*tei 6

开始吧

./program > file.log 2>&1
这会将stdout和stderr重定向到file.log