Take a look here. It should be:
yourcommand &> filename
It redirects both standard output and standard error to file filename.
1.4m articles
1.4m replys
5 comments
57.0k users