SyntaxFix
Write A Post
Hire A Developer
Questions
To get the output on the console AND in a file file.txt for example.
file.txt
make 2>&1 | tee file.txt
Note: & (in 2>&1) specifies that 1 is not a file name but a file descriptor.
&
2>&1
1