I would like to direct:
- Standard output to file.
- Standard error to the same file.
- Standard error to console (as well as file).
I've seen this kind of thing:
mycommand 2>&1 | tee test.txt
But it shows standard output on the console where I only want to see errors.