Bash快捷键
【Ctrl系列】
Section titled “【Ctrl系列】”Ctrl + b - Move back a charCtrl + c - Terminate the command //用的最多了吧?用ctrl+\吧,这个是退出信号,ctrl+C是中断信号Ctrl + d - Delete from under the cursorCtrl + e - Jump to the end of the lineCtrl + f - Move forward a charCtrl + k - Delete to EOLCtrl + l - Clear the screen //清屏,类似 clear 命令Ctrl + r - Search the history backwards //查找历史命令Ctrl + R - Search the history backwards with multi occurrenceCtrl + u - Delete backward from cursor // 密码输入错误的时候比较有用Ctrl + xx - Move between EOL and current cursor positionCtrl + x @ - Show possible hostname completionsCtrl + z - Suspend/ Stop the command补充:Ctrl + h - 删除当前字符Ctrl + w - 删除最后输入的单词
【Alt系列】
Section titled “【Alt系列】”alt+> move to the last line of historyalt+? show current completion listalt+* insert all possible completionalt+/ attempt to complete filename yank last argument to previous commandalt+. alt+c capitalize the wordalt+d delete wordalt+f move forwardalt+b move backwardalt+l make word lowercase search the history forwards nonincrementalalt+n search the history backwards nonincrementalalt+p alt+r recall commandalt+t move word aroundalt+u make word uppercasealt + delete backwards from cursor
【Esc系列】
Section titled “【Esc系列】”esc+t transpose two adjacent wordsesc+b move backward a wordesc+f move forward a wordesc+d delete from the cursor position to the end of the word