Skip to main content

shell - What is the purpose of 'tee'?

All the usages of tee I ever saw were such:


 do_something | tee -a logfile

Or:


do_something_else | tee logfile

Is tee invented for those that don't know you can do the same with shell pipe redirections? Such as:


do_something >> logfile

Or:


do_something_else > logfile

It's practically the same and it takes less keyboard hits to type out. What hidden features am I not seeing in tee?

Comments