리눅스 bash 명령어 한줄로 합치기 ;

Jmnote bot (토론 | 기여)님의 2015년 2월 6일 (금) 03:32 판 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
리눅스 bash 명령어 한줄로 합치기
리눅스 한줄에 여러 명령어 실행

1 방법 예시

명령어
echo hello; echo world;
echo hello && echo world;
실행예시
[root@jmnote ~]# echo hello; echo world;
hello
world
[root@jmnote ~]# echo hello && echo world;
hello
world

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}