문서 보기이전 판역링크맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. {{tag>[tee stdout redirection]}} ====== tee ====== > 기본 출력을 파일로 쓰기위한 명령어. ''>'' redirection과 유사 >> redirection과 다르게 sudo를 사용해도 권한이 유지된 명령. ==== USAGE ==== <code bash> # 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 </code> * ''something | <color #c3c3c3>**tee**</color> <color #22b14c>[<switches>...]</color> <color #7092be>filename</color>'': 파이프라인을 통하여 온 내용을 파일에 새로 쓴다. ''>'' redirection * ''<color #22b14c>**-a**</color>'': 내용을 파일에 추가한다. ''>>'' redirection tee.txt 마지막으로 수정됨: 2024/09/19 03:42저자 writer