Is there a way to have Bash redirect STDOUT/STDERR to a file yet still print them out to the terminal as well?
Linux Bash – Print STDOUT/STDERR and Write Them to a File in Bash
bashio-redirectionlinuxstderrstdout
bashio-redirectionlinuxstderrstdout
Is there a way to have Bash redirect STDOUT/STDERR to a file yet still print them out to the terminal as well?
Best Answer
This will redirect both STDOUT and STDERR to the same file:
Example