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  查找歷史命令

    [root@localhost network-scripts]#
    (reverse-i-search)`yu': yum install lynx //ctrl + r 歷史命令查找

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章