tee

tee

info
nametee
full nametee
aliasestee
tagstee
기본 출력을 파일로 쓰기위한 명령어. > redirection과 유사
redirection과 다르게 sudo를 사용해도 권한이 유지된 명령.
#
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
  • something | tee [<switches>…] filename: 파이프라인을 통하여 온 내용을 파일에 새로 쓴다. > redirection
    • -a: 내용을 파일에 추가한다. » redirection
  • tee.txt
  • 마지막으로 수정됨: 2024/09/19 03:42
  • 저자 writer