OS/Linux

[Linux] 리눅스 명령어 - echo

개발계발게발 2021. 11. 8. 17:05
반응형

리눅스 명령어 - echo

 

리눅스(Linux)에서 echo는 지정도니 문자열을 화면에 그대로 출력할 때 사용하는 명령어

 

사용 구문

echo [옵션] [문자열]

 

  • "Test Inform" 출력
echo "Test Inform"

 

  • "Test Inform" 맨뒤 개행 문자열 제거 하고 출력
echo -n "Test Inform"

 

  • "Test Inform" 문자열을 test.txt 파일로 저장
echo "Test Inform" >> hello.txt

 

  • "Test Inform" 출력
echo "Test Inform"

 

반응형

'OS > Linux' 카테고리의 다른 글

[Linux] 리눅스 명령어 - clear  (0) 2021.11.08
[Linux] 리눅스 명령어 - diff, diff3  (0) 2021.11.08
[Linux] 리눅스 명령어 - ps, kill  (0) 2021.11.08
[Linux] 리눅스 명령어 - grep  (0) 2021.11.08
[Linux] 리눅스 명령어 - find  (0) 2021.11.08