1. 程式人生 > >Linux快捷鍵總結

Linux快捷鍵總結

pla cpe 補充 rip root script splay class num

使用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. !$ 最後一個參數

目前我想到的有這麽多,以後再慢慢的補充,常用的也就差不多這些了。

Linux快捷鍵總結