Take a look here. It should be:
yourcommand &> filename
It redirects both standard output and standard error to file filename.
More Related Contents:
- Shell redirection i/o order
- How to redirect and append both standard output and standard error to a file with Bash
- How to redirect both stdout and stderr to a file [duplicate]
- How can I pipe stderr, and not stdout?
- How to store standard error in a variable
- Capture stdout and stderr into different variables
- Bash script – store stderr in a variable [duplicate]
- Piping both stdout and stderr in bash?
- Capture both stdout and stderr in Bash [duplicate]
- How to pipe stdout while keeping it on screen ? (and not to a output file)
- How do file descriptors work?
- pipe stdout and stderr to two different processes in shell script?
- In the shell, what does ” 2>&1 ” mean?
- Difference between single and double quotes in Bash
- What is the difference between $(command) and `command` in shell programming?
- How to run the sftp command with a password from Bash script?
- Variable expansion is different in zsh from that in bash
- Best way to make a shell script daemon?
- Can colorized output be captured via shell redirect? [duplicate]
- Simple method to shuffle the elements of an array in BASH shell?
- Detect if PATH has a specific directory entry in it
- Piping and Redirection
- How to view files in binary from bash?
- Test if a command outputs an empty string
- How to split one string into multiple variables in bash shell? [duplicate]
- Floating point comparison in shell
- How to wait for an open port with netcat?
- run bash command in new shell and stay in new shell after this command executes
- Use GNU find to show only the leaf directories
- Get the name of the caller script in bash script