I want to redirect both stdout and stderr of a process to a single file.
(我想将一个进程的stdout和stderr都重定向到一个文件。)
(我该如何在Bash中做到这一点?)
Take a look here .
(在这里看看。)
(应该:)
yourcommand &>filename
(redirects both stdout and stderr to filename).
stdout
stderr
((将stdout和stderr都重定向到文件名)。)
2.1m questions
2.1m answers
60 comments
57.0k users