小编Wil*_*ire的帖子

输出重定向

我正在使用该tee命令将程序的编译错误与终端一起输出到文件中。

gcc hello.c | tee file.txt 
Run Code Online (Sandbox Code Playgroud)

这是我用过的命令。编译错误显示在终端上,但不会输出到文件中。我应该如何将 std 错误输出到文件中?

command-line pipe io-redirection tee

1
推荐指数
1
解决办法
620
查看次数

标签 统计

command-line ×1

io-redirection ×1

pipe ×1

tee ×1