`
liuyf8688
  • 浏览: 96424 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Linux系统下Shell命令行快捷键实用技巧

阅读更多

  # Ctrl + A - Go to the beginning of the line you are currently typing on

  # Ctrl + E - Go to the end of the line you are currently typing on

  切到命令行开始|结尾

  # Ctrl + L - Clears the Screen, similar to the clear command

  清屏,类似于 clear 命令

  # Ctrl + U - Clears the line before the cursor position. If you are at the end of the line, clears the entire line.

  清除光标以前

  # Ctrl + H - Same as backspace

  退格键 backspace

  # Ctrl + R - Let’s you search through previously used commands

  从命令历史中找

  # Ctrl + C - Kill whatever you are running

  终止命令

  # Ctrl + D - Exit the current shell

  退出 shell

  # Ctrl + Z - Puts whatever you are running into a suspended background process. fg restores it.

  ??

  # Ctrl + W - Delete the word before the cursor

  清除光标之前

  # Ctrl + K - Clear the line after the cursor

  清除光标之后

  # Ctrl + T - Swap the last two characters before the cursor

  # Esc + T - Swap the last two words before the cursor

  切换光标前最后两个字母(单词)

  # Alt + F - Move cursor forward one word on the current line

  # Alt + B - Move cursor backward one word on the current line

  ??在 ubuntu x windows终端中会切换到菜单!tty 可能可以

  # Tab - Auto-complete files and folder names

  自动补全

  # Ctrl + Y - to paste it (as in delete and copy) all text in front of the cursor

  粘贴(刚才 ctrl+w 或者 ctrl+k 的内容)

  # Esc + . (or Esc + Underscore) - Insert Last Argument

  ??

  # Ctrl + b - Move back a character

  # Ctrl + f - Move forward a character

  向前|后移动一个字母

  # Ctrl + r - Search the history backwards

  ??

  # Ctrl + xx - Move between EOL and current cursor position

  光标在当前位置和 EOL 之间切换(EOL end of line?但我实验,是在开头和当前位置之间切换,怎么理解?谁知道?)

  # Ctrl + x @ - Show possible hostname completions

  # 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 + 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 + u - Make word uppercase

  # 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

分享到:
评论

相关推荐

    Linux中Shell的快捷键

    Linux系统下Shell命令行快捷键实用技巧

    linux shell命令的常用快捷键

    Ctrl + a 切换到命令行开始 Ctrl + e 切换到命令行末尾 Ctrl + l 清除屏幕内容 Ctrl + u 清除剪切光标之前的内容 Ctrl + k 剪切清除光标之后的内容 Ctrl + y 复制剪切板里的内容 Ctrl + h 类似于退格键 Ctrl + r 在...

    linux下命令行操作快捷键及技巧(分享)

    历史相关命令 !!:执行上一条命令 !num:执行历史命令中第num条命令 !-num:执行历史命令中倒数第num条命令 !?...:执行最近一条包含有string字符串的命令 Ctrl+r:搜索上一条匹配的命令 ...$:代表上一个命令的最后一个...

    UNIX Linux系统操作命令大全

    UNIX Linux系统操作命令大全 UNIX+Shell+范例精解(第4版) unix命令行快捷键

    Linux教程+ shell学习笔记 + Shell脚本常用命令+shell脚本100例资源合集

    本文整理了一份Linux shell学习笔记及基本命令合集,包含了LINUX常用操作命令和命令行编辑快捷键、shell基本命令,Linux相关使用配置教程等,需要的朋友可下载试试! shell是一个用C语言编写的程序,它是用户使用...

    linux快捷键、cygwin快捷键、快捷方式(全)

    cygwin下linux快捷键汇总: Ctrl + a 切换到命令行开始 Ctrl + b 左移一个字符 Ctrl + c 终止命令(终止当前进程) Ctrl + d 退出shell,login(退出当前终端)/删除后一个字符 . .

    Linux终端命令行的常用快捷键详解

    ↓(Ctrl+n) 显示下一条命令 !num 执行命令历史列表的第num条命令 !! 执行上一条命令 !?string? 执行含有string字符串的最新命令 Ctrl+r 然后输入若干字符,开始向上搜索包含该字符的命令,继续按Ctrl+r,搜索上一条...

    常使Linux快捷键提高工作效率

    近期在工作中发现经常性的使用一些重复性命令,经常性的修改一些长明令,感觉有必要科普一下shell命令行的一些常见快捷键了,以便大家节省时间提高工作效率。

    shell的快捷操作

    本文讲述了Linux命令行编辑快捷键的方法,希望对您有所帮助

    Shell-脚本常用命令-文档.doc

    整理了一份Linux shell学习笔记及基本命令合集,包含了LINUX常用操作命令和命令行编辑快捷键、shell基本命令,Linux相关使用配置教程等,需要的朋友可下载试试! shell是一个用C语言编写的程序,它是用户使用Linux的...

    Linux从零入门实战-2019年七月Z线.txt

    实战项目: C语言实现一个简单的命令行系统 第三阶段 实战Linux网络与运维 第六讲 Linux网络基础 知识点1: 计算机网络基础 知识点2: ifconfig 知识点3: 网络测试命令:主机 ping/ 本机端口:netstat/ 嗅探器 ...

    bash shell学习笔记

    bash快捷键、Linux有关网络配置的命令 一、创建shell脚本、重定向输入与输出、执行数学运算、退出脚本 二、shell脚本中的各种结构化命令的格式与用法(for、while、until、break等) 三、处理用户的输入:命令行参数...

    Linux学习笔记(强悍总结值得一看)

    LINUX常用操作命令和命令行编辑快捷键 终端快捷键: Ctrl + a/Home 切换到命令行开始 Ctrl + e/End 切换到命令行末尾 Ctrl + l 清除屏幕内容,效果等同于clear Ctrl + u 清除剪切光标之前的内容 Ctrl + k 剪切...

    安卓系统下的bash shell,ssh服务器,gcc编译器以及vim文本编辑器等

    安卓系统下的bash shell,ssh服务器,gcc编译器以及vim文本编辑器等 使用vim编辑多个文件 vim file1 file2 file3 ... :next查看或编辑后一个文档的内容 :prev查看或编辑前一个文档的内容 :first查看或...

    Linux管理员指南

    命令行 68 6.1 BASH简介 68 6.1.1 作业控制 69 6.1.2 环境变量 69 6.1.3 管道 70 6.1.4 重定向 70 6.1.5 BASH的命令行快捷键 71 6.2 文档工具 72 6.2.1 man命令 72 6.2.2 texinfo系统 73...

    入门学习Linux常用必会60个命令实例详解doc/txt

    前面介绍了Linux下有多种Shell,一般缺省的是Bash,如果想更换Shell类型可以使用chsh命令。先输入账户密码,然后输入新Shell类型,如果操作正确系统会显示“Shell change”。其界面一般如下: Changing fihanging ...

    网吧维护技术资料 合集

    3638 网吧维护\资料\xp实用技巧\Win XP 键盘快捷键概述.txt 5851 网吧维护\资料\xp实用技巧\Win XP中的网桥.txt 1226 网吧维护\资料\xp实用技巧\Win98+Win2000+WinXP三操作系统共同使用安装实录 .txt 3160 网吧维护\...

    Gow(Cygwin替代软件)

    安装了它后,当你点击文件夹右键时,会看到右键菜单里多了一个快捷键,点击这个快捷键,你就会在当前文件路径下打开一个命令行窗口(注意:是Windows的命令行窗口,不是Linux的shell窗口),在这个窗口里,你既可以...

    Windows Powershell 快捷键介绍

    Powershell的快捷键和cmd,linux中的shell,都比较像。 ALT+F7 清除命令的历史记录 PgUp PgDn 显示当前会话的第一个命令和最后一个命令 Enter 执行当前命令 End 将光标移至当前命令的末尾 Del 从右开始删除...

    你需要知道的linux基础编程(一)

    Shell —– UNIX操作系统 Bash —– Linux操作系统 本质:根据命令的名字,调用对应的可执行程序 Linux快捷键 history 查看历史命令 ctrl + p 在历史的命令记录里向上滚动 ctrl + n 在历史的命令记录里向下滚动 ctrl...

Global site tag (gtag.js) - Google Analytics