《2022年Linux系统下Shell命令行快捷键实用技巧 .pdf》由会员分享,可在线阅读,更多相关《2022年Linux系统下Shell命令行快捷键实用技巧 .pdf(3页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、Linux 系统下 Shell 命令行快捷键实用技巧发布时间:2008.02.0206:18来源:赛迪网作者:兔儿岭# Ctrl+ A - Goto the beginning of the lineyou are currentlytyping on# Ctrl+ E - Goto the end of the lineyou are currentlytyping on切到命令行开始结尾# Ctrl+ L - Clears the Screen, similarto the clear command清屏,类似于 clear 命令# Ctrl+ U - Clears the linebef
2、ore the cursor position.Ifyou are at the end of theline,clearsthe entireline.清除光标以前# Ctrl+ H - Same as backspace退格键 backspace# Ctrl+ R - Letsyou search through previously used commands从命令历史中找# Ctrl+ C - Killwhatever you are running终止命令# Ctrl+ D - Exit the current shell退出 shell# Ctrl+ Z - Puts whatev
3、er you are running into a suspendedbackgroundprocess. fgrestores it.?# Ctrl+ W- Delete the word before the cursor清除光标之前# Ctrl+ K - Clear the lineafterthe cursor清除光标之后# Ctrl+ T - Swapthe lasttwo characters before the cursor# Esc + T - Swapthe lasttwo words before the cursor名师资料总结 - - -精品资料欢迎下载 - - -
4、- - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 3 页 - - - - - - - - - 切换光标前最后两个字母(单词)# Alt + F - Movecursor forward one word on the current line# Alt + B - Movecursor backwardone word on the current line?在 ubuntu x windows 终端中会切换到菜单!tty 可能可以# Tab - Auto-complete filesand foldernames自动补全#
5、Ctrl+ Y - to paste it(as in delete and copy) alltext in frontof the cursor粘贴(刚才 ctrl+w 或者 ctrl+k的内容)# Esc + . (or Esc + Underscore) - InsertLast Argument?# Ctrl+ b - Moveback a character# Ctrl+ f - Moveforward a character向前后移动一个字母# Ctrl+ r - Search the historybackwards?# Ctrl+ xx - MovebetweenEOLand
6、 current cursor position光标在当前位置和 EOL之间切换(EOLend of line? 但我实验,是在开头和当前位置之间切换,怎么理解?谁知道?)# Ctrl+ x - Showpossible hostnamecompletions# Alt +# Alt + - Moveto the lastlinein the history# Alt + ? - Showcurrent completion list# Alt + * - Insertallpossible completions# Alt + / - Attempt to complete filename
7、# Alt + . - Yanklastargumentto previous command# Alt + c - Capitalizethe word# Alt + d - Delete word名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 3 页 - - - - - - - - - # Alt + l - Makeword lowercase# Alt + n - Search the historyforwards non-incremental# Alt +
8、p - Search the historybackwardsnon-incremental# Alt + r - Recall command# Alt + t - Movewords around# Alt + u - Makeword uppercase# Alt + back-space - Delete backwardfrom cursor# Here 2T meansPress TABtwice# $ 2T - Allavailablecommands(common)# $ (string)2T - Allavailablecommands startingwith (strin
9、g)# $ /2T - Entire directorystructureincludingHiddenone# $ 2T - Only SubDirs inside includingHidden one# $ *2T - Only SubDirs inside without Hiddenone# $ 2T- AllPresent Users on systemfrom /etc/passwd# $ $2T - AllSys variables# $ 2T - Entries from /etc/hosts# $ =2T- Output likels or dir(责任编辑:云子)名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 3 页 - - - - - - - - -