리눅스 터미널에서 사용되는 "|" 는 무엇인가?

이동규 (Justin)·2023년 5월 11일
0
echo hello | docker run -i busybox cat
  hello

에서, '|' 는 무슨 의미일까?

It is the pipe symbol.

'파이프 심볼' 이라고 한다.

It separates two programs on a command line, and the standard output of the first program is connected to the standard input of the second program.

아하! 첫번째로 작성된 커맨드의 출력값이 두번째 커맨드의 인풋으로 전달된다는 것이군. 함수형 프로그래밍에서의 파이프와 동일한 개념으로 사용된다는 것을 알았다.

What does '|' means in a termianl command line? - Jonathan Leffler, Stack Overflow

profile
Frontend Developer, JamStack, Ethereum

0개의 댓글