콘솔에 뿌려지는 내용을 콘솔로도 보이고, 그 보이는 것을 모두 파일로 저장하는 방법은 무엇입니까?
감사합니다.
hahaha 란 파일이 주어진 디렉터리에 없다고 합시다.
[root@localhost /root]# ls hahaha >& asdf [root@localhost /root]# more asdf ls: hahaha: 그런 파일이나 디렉토리가 없음
에러메시지도 asdf란 파일로 출력됩니다.
응용하면
./configure >& asdf
정도가 되지 않을까요?
No Pain, No Gain.
tee 를 써보세요.
---http://coolengineer.com
man tee
에러메시지까지 파일로 출력하기..
hahaha 란 파일이 주어진 디렉터리에 없다고 합시다.
[root@localhost /root]# ls hahaha >& asdf
[root@localhost /root]# more asdf
ls: hahaha: 그런 파일이나 디렉토리가 없음
에러메시지도 asdf란 파일로 출력됩니다.
응용하면
./configure >& asdf
정도가 되지 않을까요?
No Pain, No Gain.
tee 를 써보세요.
tee 를 써보세요.
---
http://coolengineer.com
man tee
man tee