# Linux指令 1. 壓縮 tar zcf node_modules.tar.gz node_modules node_modules.tar.gz是壓縮後的檔名(附檔名) node_modules是要壓縮的檔案 2. 解壓縮 tar zxf node_modules.tar.gz "node_modules.tar.gz"是壓縮檔 3. 移動 mv /home/ennio/test/node_modules.tar.gz /home/ennio/ 將/home/ennio/test/底下的node_modules.tar.gz 搬到/home/ennio/ 4. 新增檔案(文字) cd到要新增檔案的位置後 sudo vim 檔名.附檔名 (如果沒有這個檔 就會以新增方式 如果有就是開啟) 進vim模式 輸入 i=insert a=append o=new line 改好離開 點esc 沒問題存檔 :w :q 離開 :wq存檔離開 通常新增/修改順序為: 1.sudo vim 檔案.附檔名 2.i 3.修改 4.esc 5.:wq 5. 新增文件夾 cd 到要新增文件夾的位置 mkdir 文件夾名稱 參考資料 https://gitbook.tw/chapters/command-line/vim-introduction.html
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up