標籤:
原文網址:http://daaoao.blog.51cto.com/2329117/554177
linux下使用終端不可避免。
使用終端快速鍵,當然會使你如虎添翼。記住他們吧
終端快速鍵
tab=補全
ctrl+a=開始位置
ctrl+e=最後位置
alt+shift+f 游標位置移動到前一個單詞
alt+shift+b 游標位置移動到後一個單詞
ctrl+k=刪除此處至末尾所有內容
ctrl+u=刪除此處至開始所有內容
alt+backspace=刪除此處到游標所在單詞的開頭的所有內容
ctrl+d=刪除當前字母
ctrl+w=刪除此處到左邊的單詞
ctrl+y=粘貼由ctrl+u,ctrl+d,ctrl+w刪除的單詞
ctrl+r=搜尋曆史命令表,找到你想要的那個命令
ctrl+l=相當於clear
ctrl+b=向回移動
ctrl+f=向前移動
ctrl+p=向上顯示緩衝命令
ctrl+n=向下顯示緩衝命令
ctrl+d=關閉終端
shift+上或下=終端上下滾動
shift+pgup或pgdown=終端上下翻頁滾動
ctrl+shift+f=全屏(僅限於konsole)
ctrl+shift+n=新終端(terminal和konsole有所不同)
ctrl+c=終止
# Alt +
# Alt + > - Move to the last line in the history
# Alt + ? - Show current completion list
再某個單詞後面使用,顯示可以使用的這個單詞開頭命令列表,包含本目錄
# Alt + * - Insert all possible completions
# Alt + / - Attempt to complete filename
# Alt + . - Yank last argument to previous command
前一個命令的最後一個參數
# Alt + c - Capitalize the word
游標所在的單詞的第一個字母大寫
# Alt + d - Delete word
刪除游標所在位置的單詞
# Alt + l - Make word lowercase
游標所在位置的單詞變小寫
# Alt + u - Make word uppercase
游標所在位置的單詞變大寫
# Alt + n - Search the history forwards non-incremental
# Alt + p - Search the history backwards non-incremental
# Alt + r - Recall command
# Alt + t - Move words around
# Alt + back-space - Delete backward from cursor
刪除游標前面的一個單詞
# 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
列出目錄檔案
以下為網上的快速鍵列表
開啟主菜單 = Alt + F1
運行 = Alt + F2
顯示案頭 = Ctrl + Alt + d
最小化當前視窗 = Alt + F9
最大化當前視窗 = Alt + F10
關閉當前視窗 = Alt + F4
截取全屏 = Print Screen
截取視窗 = Alt + Print Screen
【轉】linux下終端命令快速鍵