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