Linux快捷鍵總結
阿新 • • 發佈:2019-02-13
pla cpe 補充 rip root script splay class num
使用Linux很久了,現對經常用到的快捷鍵做一個總結:
- 最重要的一個當然是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
- ctrl + c 中斷操作,就不展開寫了
- ctrl + d 結束輸入
- ctrl + p 上一條命令
[root@localhost ~]# cd /etc/sysconfig/network-scripts/ [root@localhost network-scripts]# cd /etc/sysconfig/network-scripts/ //上一條命令
- ctrl + n下一條命令
- ctrl + b 光標向後移動一個字符
- ctrl + f 光標向前移動一個字符
- ctrl + a 光標移動至命令行開頭
- ctrl + e 光標移動至命令行結尾
- ctrl + k 刪除光標至結尾的內容
- ctrl + u 刪除光標至開頭的內容
- ctrl + l 重新繪制屏幕
- ctrl + w 以單詞為單位刪除
- ctrl + t交換當前的兩個字符
[root@localhost ~]# cd [root@localhost ~]# dc //ctrl+t 對兩個字符進行交換
- 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]#
-
ctrl + r 查找歷史命令,ctrl+g退出搜索
[root@localhost network-scripts]# (reverse-i-search)`yu‘: yum install lynx //ctrl + r 歷史命令查找
- Ctrl+s 鎖定終端,使終端無法輸入。
- Ctrl+q 解鎖終端
- !!執行上一條命令
- !$ 最後一個參數
目前我想到的有這麽多,以後再慢慢的補充,常用的也就差不多這些了。
Linux快捷鍵總結