1) Shell 1 - intro

<aside> 💡 ***사람이 이해할 수 있는 명령어를 Shell에 입력 → Shell이 사용자가 입력한 명령어 해석 후 Kernel에게 전달 → “운영체제”가 명령어를 읽어 그에 대한 응답 전송

예) ls -al 입력하는 경우 → shell이 해석하여 kernel에게 전달하면, kernel이 읽어서 “모든 파일에 대한 정보” shell에 보여준다.

목적) Kernel 제어***

</aside>

2) Shell 2 - Bash vs zsh (Shell 종류)

nojeans@xudegloss:~$ echo "hello"
hello
nojeans@xudegloss:~$ echo $0 # 어떤 쉘에 접속하고 있는지 확인하는 명령어
-bash # bash shell에 접속 (user - bash <-> kernel)

xudegloss% echo $0
zsh # zsh shell에 접속 (user - zsh <-> kernel)

## zsh에서 bash 변경 혹은 역으로 ##

xudegloss% /bin/bash
nojeans@xudegloss:~$ exit
exit
xudegloss% exit
nojeans@xudegloss:~$
## bash ##

nojeans@xudegloss:~$ ls -al | grep '^d'
drwxr-x--- 4 nojeans nojeans  4096 Mar 28 00:23 .
drwxr-xr-x 3 root    root     4096 Mar 13 23:57 ..
drwx------ 2 nojeans nojeans  4096 Mar 13 23:57 .cache
drwx------ 2 nojeans nojeans  4096 Mar 13 23:57 .ssh
nojeans@xudegloss:~$ pwd
/home/nojeans

## zsh ##
xudegloss% ls -al | grep '^d'
drwxr-x--- 4 nojeans nojeans  4096 Mar 28 00:23 .
drwxr-xr-x 3 root    root     4096 Mar 13 23:57 ..
drwx------ 2 nojeans nojeans  4096 Mar 13 23:57 .cache
drwx------ 2 nojeans nojeans  4096 Mar 13 23:57 .ssh
xudegloss% pwd
/home/nojeans

# cd /h/n + tab키 누르면 -> 자동 완성 => 사용하기 편리하다는 장점 有
# cd [현 위치] [옮기고 싶은 위치] # 한 줄로 옮길 수 있음

Untitled

Untitled

3) Shell 3 - Shell Script 소개