How to use tee command in Linux

The tee command works like the shape of the capital alphabet ‘T’ that takes input from one source and can store the output in the multiple locations. How this command can be used in Linux is shown in this tutorial by using multiple examples.