[Linux](EN) Difference between && and ; in shell command

Difference between && and ;

Environment and Prerequisite

  • Ubuntu 16.04


Difference

  • ; : execute next command whether previous command was successfully executed or not
$ apt-get install gcc; apt-get install gdb


  • && means AND so next command will be executed only if previous command was successfully executed(return true)
$ apt-get install gcc && apt-get install gdb

[AWS] AWS CLI를 이용해 EC2 인스턴스를 생성, 나열 그리고 삭제하기

> AWS CLI를 통해서 EC2 인스턴스를 생성, 나열 그리고 삭제를 해보자.## 환경- Ubuntu 18.04- AWS CLI- Bash shell(/bin/bash)## 과정1. AWS CLI 설치2. 기본 환경 설정(구성 및 자격 증명 설...… Continue reading