所以我有一个程序可以叫它foo。我正在尝试使用以下命令将其终端输出重定向到一个文件。
foo > ./someFile.txt
现在,当我运行该命令时,会创建 someFile.txt,但它是空的。关于如何重定向终端输出的任何建议?
io-redirection
io-redirection ×1