문제 설명
우분투 터미널에서 "head"를 사용하여 매뉴얼의 처음 10줄을 보는 방법 (How to use "head" in ubuntu terminal to see first 10 lines of manual)
한 가지 질문이 있습니다:
우분투 터미널에서 "head"를 사용하여 매뉴얼의 처음 10줄을 보는 방법(예: head of grep 매뉴얼)
다음과 같은 방법을 시도했습니다.
head man grep
참조 솔루션
방법 1:
man grep | head
The pipe (|
) is used to redirect output from one command to input for another command. So this command takes the output of man grep
and provides it as input to head
.