Shell 이 실행되는 환경을 Interactive 와 Non-Interactive로 두가지로 나누어 볼 수 있다.
Interactive Shell
Non-Interactive Shell
기본적으로 interactive shell 에서 사용하기 위한 기본적인 기능들은
(history 확장, Alias, job control 등)으로 script 을 실행할 때는 disable 된다.
Interactive
Non-Interactive
Shell Script에는 C 언어와 같은 프로그램 언어와 마찬가지로 조건문, 반복문, 함수등과 같은 프로그래밍 구문들을 포함할 뿐만 아니라 여러 다양한 Scripting 구문들을 포함하고 있어 타 프로그램과 연동하여 시스템 상에서 우리가 원하는 거의 모든 작업을 수행할 수 있다.
Interactive vs Non-Interactive Shell
https://mug896.github.io/bash-shell/interactive_non-interactive.html
쉘 스크립트 -제 1장 쉘 소개
https://blog.naver.com/PostView.nhn?isHttpsRedirect=true&blogId=big5347&logNo=220100371362