TH's Notes
  • Home
  • Categories
  • Tags
  • Archives

Bash 中常用的快捷鍵

目前 Mac 預設的 shell 是 Bash,這裡列出一些常用的快捷鍵。

  • ctrl + a: 將游標移到開頭
  • ctrl + e: 將游標移到結尾
  • alt + f: 將游標向前移動一個單字
  • alt + b: 將游標向後移動一個單字
  • ctrl + k: 刪除游標後面的所有字元
  • ctrl + u: 刪除游標前面的所有字元
  • ctrl + w: 刪除游標前面的一個單字
  • ctrl + t: 將游標前的兩個字母對調
  • esc + t: 將游標前的兩個單字對調
  • tab: 自動完成檔案或目錄名稱
  • ctrl + d: 刪除游標後的一個字元
  • ctrl + c: 中斷執行
  • ctrl + z: 暫停程序並將它丟到背景
Comments
comments powered by Disqus

  • « 好用的 Debug 工具: Pry
  • 在 RSpec 中使用 shared examples »

Published

Dec 16, 2014

Category

Misc

Tags

  • utils 10
  • Powered by Pelican. Theme: Elegant by Talha Mansoor