Skip to main content

管理與操作

查出目前使用哪種 SHELL

ps -p $$
echo $0
echo $SHELL 

執行 SHELL 的方式

sh file
. file
source file

常用鍵盤快捷鍵

KeyOperation
Ctrl + aGo to the beginning of the line.
Ctrl + eGo to the end of the line.
Alt + bGo left(back) one word.
Alt + fGo right(forward) one word.
Ctrl + uCut the part of the line before the cursor, adding it to the clipboard.
Ctrl + kCut the part of the line after the cursor, adding it to the clipboard.