All output will be sent to terminal and file.

bash-4.2$ command |& tee output.txt

Append to existing file

bash-4.2$ command |& tee -a output.txt

Source: Stackoverflow

January 1, 2017


Previous post
Run Linux Process in Background Press ENTER after you see the above message
Next post
Python Decorator by Example A Python decorator allows you to execute some code before and after the wrapped function is executed. We typically use decorators for validation,