using_tee_to_output_to_file_and_screen
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
using_tee_to_output_to_file_and_screen [2016/08/03 22:42] – walkeradmin | using_tee_to_output_to_file_and_screen [2016/08/03 22:45] – walkeradmin | ||
---|---|---|---|
Line 2: | Line 2: | ||
\\ | \\ | ||
\\ | \\ | ||
- | + | When you want to redirect the output of a command to a file you can use the redirector | |
- | this is unfinished....... | + | \\ |
- | + | ls -al > result.log | |
- | + | \\ | |
- | + | However, this means that you see nothing on the screen, to avoid this use the **Tee** Command: | |
- | when you want to redirect the output of a command to a file you can use the redirector > | + | \\ |
- | + | 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.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1