운영체제/리눅스(Linux)
tee 명령어
EastHoon
2022. 9. 6. 14:15
tee 명령은 표준 입력을 읽어서, 표준 출력과 하나 이상의 파일에 쓴다. 즉, 출력을 동시에 하기 위한 용도이다.
예시)
2>&1 | tee logs_dir/${name}_logs_tee.txt
의미: 표준 에러(2) 결과를 표준 출력(1)으로 리다이렉션 하고, 표준 출력 결과는 내보냄과 동시에 logs_dir/${name}_logs_tee.txt에 파일로 저장한다.
https://www.geeksforgeeks.org/tee-command-linux-example/
tee command in Linux with examples - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
반응형