using_tee_to_output_to_file_and_screen
This is an old revision of the document!
Using Tee to Output to File and Screen
When you want to redirect the output of a command to a file you can use the redirector >
ls -al > result.log
However, this means that you see nothing on the screen, to avoid this use the Tee Command:
ls -al | tee result.log
Now you get the result on both the screen and in the file.
using_tee_to_output_to_file_and_screen.1470260731.txt.gz · Last modified: 2023/03/09 22:35 (external edit)