This question already has an answer here:
这个问题在这里已有答案:
- Print on terminal and into file simultaneously? 3 answers
- 在终端上打印并同时打印到文件中? 3个答案
The question says it all. Is there any way I can have standard output appear on my terminal screen and get inputted into a file as well?
这个问题说明了一切。有什么办法可以让我的终端屏幕上出现标准输出并输入到文件中吗?
I use tcsh on Linux.
我在Linux上使用tcsh。
1 个解决方案
#1
1
$command | tee $output_file
man tee
for more information.
男士T恤获取更多信息。
#1
1
$command | tee $output_file
man tee
for more information.
男士T恤获取更多信息。