Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- PHP 5.2 .ini
- Node.js 소스 설치
- python 3.X 소스 설치
- CentOS
- vim color scheme
- mod_unique_id
- MySQL 5.1.41
- node.js
- unique_id
- apache 연동
- PHP 5.2.17 .ini
- httpd-default.conf
- httpd-info.conf
- httpd-mpm.conf
- vimrc 옵션
- Node.js apache 연동
- httpd.conf
- python 3.5.10
- gcc update
- CentOS 6.10
- httpd-vhosts.conf
- Repository
- epel repository
- httpd-autoindex.conf
- jQuery
- httpd 2.2.32
- httpd-dav.conf
- Mod_Security 룰 셋
- CentOS 6
- MySQL
Archives
- Today
- Total
곰시기's
[Linux] CentOS 13. 명령어의 사용 ( 세미콜론( ; ), 파이프 ( | ), 더블 엔퍼센트 ( && ), 더블 버티컬바 ( || ) ) 본문
Sever/Linux Command
[Linux] CentOS 13. 명령어의 사용 ( 세미콜론( ; ), 파이프 ( | ), 더블 엔퍼센트 ( && ), 더블 버티컬바 ( || ) )
곰시기 2020. 11. 2. 12:211. 세미콜론 ( ; )
- 하나의 명령이 끝났음을 나타냄
- 한 줄에서 여러 명령을 사용하고 싶을 때 사용
- 첫 명령이 실패해도, 두 번째 명령이 실행됨
ex) # head -3 test.txt; tail -3 test.txt
2. 파이프 ( | )
- 두 개의 프로세스를 이어주는 통로를 의미
=> 앞에서 실행한 명령어의 결과를 뒤에 실행하는 명령의 입력값으로 던져줌
ex) # head -3 test.txt | grep 1
3. 더블 엔퍼센트 ( && )
- 세미콜론과 비슷하지만 첫 번째 명령이 실패하면 두 번째 명령은 실행되지 않음
4. 더블 버티컬 바 ( || )
- 첫 명령이 실패해도, 두 번째 명령이 실행됨
'Sever > Linux Command' 카테고리의 다른 글
[Linux] CentOS 15. 시스템 이름 확인과 설정 ( hostname ) (0) | 2020.11.02 |
---|---|
[Linux] CentOS 14. 시스템 접속자 확인 ( whoami, who, w, id ) (0) | 2020.11.02 |
[Linux] CentOS 12. 디스크 사용량, 여유 공간 확인 ( df, du ) (0) | 2020.11.02 |
[Linux] CentOS 11. 파일의 압축과 해제 ( zip, tar ) (0) | 2020.10.30 |
[Linux] CentOS 10. 계정과 암호관리 ( chage, passwd ) (0) | 2020.10.30 |
Comments