취미와 밥줄사이
[Linux] echo command 본문
echo 명령어
- Linux에서 echo 명령은 인수로 전달된 텍스트 / 문자열 행을 표시하는 데 사용됩니다.
- 이것은 파일에 상태 텍스트를 출력하기 위해 쉘 스크립트와 배치 파일에서 주로 사용되는 내장 명령입니다.
문법
echo [option] [string]
텍스트 문자열 표시 문법
echo [string]
echo 명령어 파일 생성하기
- echo 명령어와 >를 사용하면 간단히 파일을 만들 수 있습니다.
echo -e adcdbefg\\n123456 > newfile
cat new file
# abcdef
# 123456
REFERENCE
https://www.geeksforgeeks.org/echo-command-in-linux-with-examples/
echo command in Linux with Examples - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
https://jjeongil.tistory.com/997
Linux, Ubuntu : echo 명령어 : 사용법, 옵션, 예제
리눅스 상에서 echo 명령어 예제 Linux의 echo 명령어는 인수로 전달되는 텍스트 / 문자열을 표시하는 데 사용됩니다. 이 명령어는 쉘 스크립트와 배치 파일에서 주로 현재 상태를 화면이나 파일로
jjeongil.tistory.com
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=audiendo&logNo=220775822302
리눅스 명령어 : echo, cat, more
화면 문자열 출력 : echoecho 는 화면에 텍스트를 출력하는 명령어입니다. 다른 용도로는 간단히 파일을 만...
blog.naver.com
'OS > Linux' 카테고리의 다른 글
[리눅스 명령어] shutdown (0) | 2021.12.07 |
---|---|
[리눅스 명령어] who 명령어 (0) | 2021.12.07 |
[linux] vim 사용법 (0) | 2021.12.04 |
[Ubuntu18.04] ImportError: No module named tensorflow (2) | 2021.11.07 |
[Ubuntu] Python3 최신 버전 설치하기 (0) | 2021.10.13 |