, ,

tee

info
nametee
full nametee
aliasestee
tagstee
기본 출력을 파일로 쓰기위한 명령어. > redirection과 유사
redirection과 다르게 sudo를 사용해도 권한이 유지된 명령.

USAGE

#
echo "hello world" | tee filename
echo "hello world" > filename
#
echo "hello world" | tee -a filename
echo "hello world" >> filename
 
# 표준 출력장치에는 표시되지 않음.
echo "hello world" | tee -a filename /dev/null