"tee" directs output to stdout and also to a file
The tee
command direct output to STDOUT but also to a file.
So, instead of using tail
to follow the log, you can see it in your terminal and still have it stored in a log file.
Example $ ls | tee file
Written by Daniel Reis
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#