我正在使用该tee命令将程序的编译错误与终端一起输出到文件中。
tee
gcc hello.c | tee file.txt
这是我用过的命令。编译错误显示在终端上,但不会输出到文件中。我应该如何将 std 错误输出到文件中?
command-line pipe io-redirection tee
command-line ×1
io-redirection ×1
pipe ×1
tee ×1