I would like to save the stderr stream of a command into a log file but I also want to display the whole output (stdout + stderr) on the screen. How can I do this?
I only found the solution to display stdout + stderr to the console and redirect both streams to a file as well:
foo | tee output.file
But I only want to redirect stderr to the log file.