Eventually in scripting you are likely to want to output to both the screen (standard out) and to a file. This makes it convenient to see whats getting “logged” without needing the extra step of cat’ing the file.
Top ramses book demo Spiele nur hier
ls -al | tee ls_al_result.txt
This will give you your normal ‘ls -al’ results but also feed them to your new file.