내가 당면한 문제와 해결방안
2 > /dev/null 의 의미
한만큼
2019. 3. 14. 11:29
가린 부분은 private repository 임 ㅇㅇ
젠킨스로 Build 할때, 잘 모르겠는 부분이 있었는데 바로
2> /dev/null
여기서 /dev/null이 의미하는게 뭔지? 2는 뭔지? 궁금해했었는데 그냥 지나쳤었다.
검색해보니 연관검색어로
'표준입출력스트림' 이라는 용어가....
역시 영영사전을 검색하는 기분이야 ㅎ 아휴 시발 모르는걸검색하면 모르는말로 설명함...
https://askubuntu.com/a/350216/859540
> file
redirects stdout to file1> file
redirects stdout to file2> file
redirects stderr to file&> file
redirects stdout and stderr to file
/dev/null
is the null device it takes any input you want and throws it away. It can be used to suppress any output.
이렇게 하면 에러메시지를 다 갖다 버린다는건가? 싶다.
https://blogger.pe.kr/369 <- 리다이렉션 / 파이프
https://kldp.org/node/56198 <- /dev/null 이 뭐예용?