사용자 도구

사이트 도구


linux:tee

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

마지막 판 양쪽 다음 판
linux:tee [2018/03/21 13:50]
kwon37xi 만듦
linux:tee [2018/04/04 15:09]
kwon37xi
줄 12: 줄 12:
 명령 2>&1 | tee 파일명 명령 2>&1 | tee 파일명
 </code> </code>
 +  * ''sudo''로 root 의 파일에 pipe 로 데이터 저장 [[https://stackoverflow.com/questions/82256/how-do-i-use-sudo-to-redirect-output-to-a-location-i-dont-have-permission-to-wr|linux - How do I use sudo to redirect output to a location I don't have permission to write to? - Stack Overflow]]<code sh> 
 +sudo echo "content" | sudo tee /root/test.out > /dev/null 
 +</code>
linux/tee.txt · 마지막으로 수정됨: 2024/03/21 13:45 저자 kwon37xi