Linux快捷键总结

使用Linux很久了,现对经常用到的快捷键做一个总结:

  1. 最重要的一个当然是tab了
    [root@localhost ~]# cd /etc/sys
    sysconfig/          sysctl.conf         sysctl.d/           system-release      system-release-cpe  
    [root@localhost ~]# cd /etc/sysconfig/network
    network          networking/      network-scripts/ 
    [root@localhost ~]# cd /etc/sysconfig/network
    network          networking/      network-scripts/ 
    [root@localhost ~]# cd /etc/sysconfig/network-scripts/ifcfg-
    ifcfg-eth0  ifcfg-lo    
    [root@localhost ~]# cd /etc/sysconfig/network-scripts/ifcfg-eth0 
    

      

  2. ctrl + c 中断操作,就不展开写了
  3. ctrl + d 结束输入
  4. ctrl + p 上一条命令
    [root@localhost ~]# cd /etc/sysconfig/network-scripts/
    [root@localhost network-scripts]# cd /etc/sysconfig/network-scripts/  //上一条命令
    

      

  5. ctrl + n下一条命令
  6. ctrl + b 光标向后移动一个字符
  7. ctrl + f 光标向前移动一个字符
  8. ctrl + a 光标移动至命令行开头
  9. ctrl + e 光标移动至命令行结尾
  10. ctrl + k 删除光标至结尾的内容
  11. ctrl + u 删除光标至开头的内容
  12. ctrl + l 重新绘制屏幕
  13. ctrl + w 以单词为单位删除
  14. ctrl + t交换当前的两个字符
    [root@localhost ~]# cd
    [root@localhost ~]# dc  //ctrl+t 对两个字符进行交换
    

      

  15. ctrl + y 删除的内容粘贴
    [root@localhost ~]# cd /etc/sysconfig/network-scripts/
    [root@localhost network-scripts]# cd   //删除参数内容
    [root@localhost ~]# cd /etc/sysconfig/network-scripts/  ctrl+y 对删除的内容进行粘贴
    [root@localhost network-scripts]# 
    

      

  16. ctrl + r 查找历史命令,ctrl+g退出搜索
    [root@localhost network-scripts]# 
    (reverse-i-search)`yu': yum install lynx //ctrl + r 历史命令查找

     

  17. Ctrl+s 锁定终端,使终端无法输入。
  18. Ctrl+q 解锁终端
  19. !!执行上一条命令
  20. !$ 最后一个参数

目前我想到的有这么多,以后再慢慢的补充,常用的也就差不多这些了。

转载于:https://www.cnblogs.com/heqiuyu/p/10369601.html

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值