# bash / zsh 指令與快捷鍵筆記 ###### tags: `前端筆記` - 最後修改: 2023-02-04 ## 常用指令 | 指令 | 摘要 | | --- | --- | | man | 查詢指令的說明文件(但不是所有指令都有 man 資料),manual 的縮寫| | ls | 列出資料夾內容 | | cd | 切換目錄(資料夾) | | pwd | 印出目前目錄的路徑 | | mkdir | 建立新目錄(新資料夾) | | touch | 建立新檔案 | | cat | 印出檔案內容 | | rm | 刪除檔案或目錄 | | mv | 移動檔案或改變檔案名稱 | | cp | 複製檔案或目錄 | ## 附錄: Some keyboard shortcut at the #Linux CLI: | shortcut | descriptions | | --- | --- | | Ctrl + a | Go to the start of line | | Ctrl + e | Go end of the line | | Alt + b |move between words | | Alt + f |move between words | | Ctrl + w | Cut the last word | | Alt + d | Delete a word | | Ctrl + u | Cut the whole line | | Ctrl + k | Cuts characters from the cursor till end of the line. | | Ctrl + y | Paste whatever was cut | | Ctrl + _ | Undo last action | | Ctrl + L | clear the screen | | Ctrl + r | Recall bash history | | Ctrl + d | Exit shell |