簡介不常見的shell組合修飾鍵

來源:互聯網
上載者:User

在應用Linux時,我們經常會遇到shell,shell在Linux作業系統中太普遍了,不過用了很久的Linux,今天才發現有幾個有用的shell組合修飾鍵從來都沒有用到過。這裡介紹一些不常見的shell組合修飾鍵。

^Z 暫停目前的命令
^S 暫停螢幕輸出
^Q 恢複螢幕輸出
^U 將命令列整列刪除
^R 開始漸進收尋過去的命令
^W 從游標倒退刪最後一個參數

bash還預設支援Emacs模式下的按鍵組合,如下:

^A 游標跳至行首,也可用
^E 游標跳至行末,也可用
^Y 貼上bash刪除緩衝區裡的內容 或
^_ undo
Meta-B 游標倒退跳一個字
Meta-F 游標向前跳一個字
meta-d Kill from the cursor to the end of the current word, or, if between words, to the end of the next word.
Meta-Y Rotate the kill-ring, and yank the new top

bash也支援自訂宏

^x ( 開始紀錄自訂宏
^x ) 結束紀錄自訂宏
^x e 執行自訂宏

希望你學會這些shell組合修飾鍵。

  1. 全面解析Linux叢集技術的要點
  2. LifeKeeper又一款Linux伺服器叢集軟體
  3. 講解Linux伺服器叢集技術
  4. 詳解保護Linux伺服器七步驟
  5. 全面介紹Linux配置ntop

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.