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都重定向到文件名)。)
1.4m articles
1.4m replys
5 comments
57.0k users