# 管理與操作 查出目前使用哪種 SHELL ```shell ps -p $$ echo $0 echo $SHELL ``` 執行 SHELL 的方式 ```shell sh file . file source file ``` ##### 常用鍵盤快捷鍵
Key | Operation |
---|---|
Ctrl + a | Go to the **beginning** of the line. |
Ctrl + e | Go to the **end** of the line. |
Alt + b | Go left(**back**) one word. |
Alt + f | Go right(**forward**) one word. |
Alt + . | Use the **last word** of the previous command. |
Ctrl + r | **Search** through the command's history |
Ctrl + u | Cut the part of the line **before** the cursor, adding it to the clipboard. |
Ctrl + k | Cut the part of the line **after** the cursor, adding it to the clipboard. |
Ctrl + l | Clear the screen |
Ctrl + w | 刪除游標前個單字 |
Ctrl+x,Ctrl+e | Edit the current command in your **$EDITOR**. |