# Command Line ###### tags: `Lidemy` `note` `cmd` `commandLine` `CMD101` [TOC] ### 基本指令 | 指令 | 用途 | 縮寫來源 | | -- | -- | -- | | `pwd` | 印出目前路徑位置 | print working directory | | `ls` | 列出檔案清單 | list | | `cd` | 切換資料夾 | change directory | | `man` | 指令使用說明書 | manual | | `clear` | 清空畫面 | clear | ### 檔案相關指令 | 指令 | 用途 | 縮寫來源 | | -- | -- | -- | | `touch` | 建立檔案或更改時間 | | | `rm` | 刪除檔案 | remove | | `mkdir` | 建立資料夾 | make directory | | `mv` | 移動檔案或改名 | move | | `cp` | 複製檔案 | copy | | `vim` | 文字編輯器 | | ### 其他指令 | 指令 | 用途 | 縮寫來源 | | -- | -- | -- | | `grep` | 抓取關鍵字 | | | `wget` | 下載檔案(有可能需安裝) | | | `curl` | 送出 repuest | | | `>` | 重新導向 input output | redirection | | `>>` | 在後方新增 | append | | `|` | 指令組合 | pipe | ### vim * 剛進入是無法打字狀態 * 按 `i` 可打字,進入 insert 模式 * 按 `esc` 回復成普通無法打字狀態 * `:q` 可跳出文字編輯器 * `:wq` 可存檔並離開文字編輯器
×
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