[汇总]Linux终端快捷键(个人收藏)[汇总]Linux终端快捷键(个人收藏)
Linux终端快捷键
,,注:以下字母不分大小写 # Ctrl A - Go to the beginning of the line you are currently typing on Ctrl Abeginning#- Go to the of the line you are currently typing on Ctrl E end Ctrl E end 切到命令行开始,结尾 # - Move between EOL and current cursor p...
[汇总]Linux终端快捷键(个人收藏)
Linux终端快捷键
,,注:以下字母不分大小写 # Ctrl A - Go to the beginning of the line you are currently typing on Ctrl Abeginning#- Go to the of the line you are currently typing on Ctrl E end Ctrl E end 切到命令行开始,结尾 # - Move between EOL and current cursor position Ctrl xxCtrl xx
光标在当前行的开头和结尾切换
# - Clears the Screen, similar to the clear command Ctrl L Ctrl L
清屏,类似于 clear 命令
--------------------------------------- # - Clears the line the cursor position. If you are at the end of the Ctrl U beforeCtrl U beforeline, clears the entire line. 清除光标之前的所有内容
# - Clear the line the cursor Ctrl KafterCtrl Kafter清除光标之后的所有内容 ---------------------------------------
# - Same as backspace Ctrl H Ctrl H
退格键 backspace
---------------------------------------
# - Move cursor on the current line Alt F forwardone wordAlt F forwardone word
光标向前移动一个词的距离
# Alt B - Move cursor backward one word on the current line Alt B backward one word 光标向后移动一个词的距离
---------------------------------------
在图形界面下使用终端时会与Alt+F(打开file菜单)冲突,可以在 keyboard
Shortcuts选项中禁用file菜单项,即 (x)Disable all menu access keys(such as Alt+f
to open File menu)
这样就可以用shell自身的shortcuts了。
# Ctrl R - Let’s you search through previously used commands Ctrl R previously used 从命令历史中找
# - Kill whatever you are running Ctrl CCtrl C
终止命令
# - Exit the current shell Ctrl D Ctrl D
退出 shell
# Ctrl Z - Puts whatever you are running into a suspended background process. fg Ctrl Z fg
restores it.
这个指你想中断一下当前执行的程序,但又不想杀死它,可以把它放到后台,想继续执行时,用fg可以唤醒它。
---------------------------------------
# - the cursor Ctrl W Delete the word before Ctrl W Delete the word before
清除光标之前的一个词,一般是以空格格开,不会删一行。
# Alt D - Delete word after the cursor Alt DDelete word after
向后删一个词
---------------------------------------------
# Ctrl T - Swap the last two characters before the cursor Ctrl T Swapcharacters
交换光标前的最后两个字符
#- the last two before the cursor Esc T Swapwords Esc T Swapwords
交换光标前的最后两个单词
# - Auto-complete files and folder names TabTab
自动补全
# - to paste it (as in delete and copy) all text in front of the cursor Ctrl YCtrl Y
粘贴(刚才 ctrl w 或者 ctrl k 的内容)
# (or Esc Underscore) - Insert t Argument Esc .Las Esc .Las插入最后一个参数,
比如我 运行 , cd /
那么我执行“ Esc . ”, 就会插入 "/ " 这个参数
-------------------------------------
# Ctrl B - Move back a character Ctrl Bback
# - Move a character Ctrl Fforward Ctrl Fforward
将光标向前,后移动一个字母的距离,不改变任何东西。
--------------------------------------
下面可不看 # - Show possible hostname completions(完成) Ctrl x@Ctrl x@
# Alt
# - Move to the last line in the history Alt > Alt >
# - Show current completion list Alt ? Alt ?
#- Insert all possible completions Alt * Alt *
# - Attempt to complete filename Alt / Alt /
# - Yank last argument to previous command Alt .Alt .
# Alt c - Capitalize the word Alt c
# Alt l - Make word lowercase
# Alt n - Search the history forwards non-incremental
# Alt p - Search the history backwards non-incremental
# - Recall command Alt r Alt r
# Alt t - Move words around Alt t
# Alt u - Make word uppercase Alt u
# - Delete backward from cursor Alt back-spaceAlt back-space
# Here "2T" means Press TAB twice
# $ 2T - All available commands(common)
# $ (string) 2T - All available commands starting with (string)
# $ /2T - Entire directory structure including Hidden one
# $ 2T - Only Sub Dirs inside including Hidden one
# $ *2T - Only Sub Dirs inside without Hidden one
# $ ~2T - All Present Users on system from "/etc/passwd"
# $ $2T - All Sys variables
# $ @2T - Entries from "/etc/hosts"
# $ =2T - Output like ls or dir
本文档为【[汇总]Linux终端快捷键(个人收藏)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。