shell 是一個命令解釋器,接收應用程式/用戶命令,操作系統 CPU
編程語言、容易編寫、靈活性強、容易調用
!#/bin/bash 執行腳本
建立 hello world 檔案 ⇒ touch helloworld.sh
#!/bin/bash
echo "helloworld yu cheng"
執行腳本 ⇒ sh helloworld.sh
建立 classroom 檔案 ⇒ touch classroom.sh
在 /home/school 目錄下建立一個 classroom.txt 在 classroom.txt 文件中新增 "I love my class"
#!/bin/bash
cd /home/school/
touch classroom.txt
echo "I love my class" >> classroom.txt