TL;DR
tee는 redirect (>) 와 동일하다고 생각하면 된다. 즉, 아래의 명령어는
echo "good" > myfile.txttee를 사용하면 다음과 같다.
echo "good" | tee myfile.txt- 그리고 다음과 같은 append redirect (
>>) 는
echo "good" >> myfile.txttee에서는-a옵션을 사용하면 된다.
echo "good" | tee -a myfile.txt- 이것만 보면
tee를 왜 쓰지? 할 수도 있는데, superuser 권한이 필요할 때tee를 사용할 일이 있을것이다.