using_tee_to_output_to_file_and_screen
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| using_tee_to_output_to_file_and_screen [2016/08/03 21:42] – walkeradmin | using_tee_to_output_to_file_and_screen [2017/01/29 18:02] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Using Tee to Output to File and Screen ====== | ====== Using Tee to Output to File and Screen ====== | ||
| - | \\ | + | <color darkorange> |
| - | \\ | + | |
| - | this is unfinished....... | + | ---- |
| - | + | ||
| - | + | ||
| - | + | ||
| - | when you want to redirect the output of a command to a file you can use the redirector > | + | |
| - | + | ||
| - | + | ||
| - | / | + | |
| + | \\ | ||
| + | <color red> | ||
| + | \\ | ||
| + | \\ | ||
| + | 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.1470260548.txt.gz · Last modified: (external edit)
