linux and cli

stderr을 stdout으로 출력하기

알 수 없는 사용자 2010. 3. 4. 18:24

command 2>&1 >/dev/null

  • stderr와 stdout을 함께 stdout으로 보냄
command 2>&1

  • stderr와 stdout을 tee 파이핑하기
command 2>&1 |tee log