link: https://awsrestart.instructure.com/courses/1632/modules/items/906203
In this lab, you will:
.
.
In this task, you use the tee command to display the output to the screen and a file.
The tee command reads the standard input. In this example, the standard input is hostname. The tee command outputs the hostname to the screen (in the shell) and the designated file, which is file1.txt.
/home/ec2-user
folder, enter pwd
and press Enter.hostname | tee file1.txt
and press Enter.