Shell Script主要用途就是用來協助使用者在UNIX or Linux環境上, 以更方便, 更自動化的方式來執行想要執行的指令
shell script 預設有些參數可以使用:
shell script
我們建議每一個項目都要有一個 package.json 文件(包描述文件,就像產品說明書一樣)這個文件可以透過 npm init 來自動初始化出來
package.json
npm init
npm install 簡寫 npm inpm install <包名> 簡寫 npm i <包名>npm install —save 簡寫 npm i -Snpm uninstall <包名> 簡寫 npm un <包名>npm uninstall <包名> —save…
npm install
npm i
npm install <包名>
npm i <包名>
npm install —save
npm i -S
npm uninstall <包名>
npm un <包名>
npm uninstall <包名> —save
git init
git status
git remote
git remote -v
git push
git push origin master
git push origin master 其實等於 git push origin master:master
git push origin master:master
git log
git log —-oneline
git log -p [commit id]
git reflog
git branch
git branch -a
<div> <h2>使用flex控制份數</h2> <div class=”flexcard”> <div class=”left”>left</div> <div…
chmod 777 <檔案名稱>chmod +x <檔案名稱>: 將每種身份都添加 execute 權限chmod -x <檔案名稱>: 將每種身份都取消 execute 權限
chmod 777 <檔案名稱>
chmod +x <檔案名稱>
chmod -x <檔案名稱>
cd
pwd
ls
概念與概念間,適當的以空白行隔開
將整段程式碼,保持在一眼可以看見全部的狀態,勿使用過多空白行,避免眼球一直上下尋找