2010年3月13日 星期六

bash的快速鍵與對應的功能

  • Ctrl + A : move the cursor to line start.
  • Ctrl + E : move the cursor to line end.
  • Ctrl + L : clear screen.
  • Ctrl + U : clear the content between current cursor position and line start position.
  • Ctrl + H : same as backspace key.
  • Ctrl + R : search before type command.
  • Ctrl + C : kill current process.
  • Ctrl + D : exit current shell.
  • Ctrl + Z : bring current process to background, use fg command to call back.
  • Ctrl + W : delete a word before the position of the current cursor.
  • Ctrl + K : clear the content between current cursor position and line end position.
  • Ctrl + T : swap two character before the current position of the cursor.
  • Esc + T : swap two word before the current position of the cursor.
  • Alt + F : move the current position of the cursor to the word before the current position of the cursor.
  • Alt + B : move the current position of the cursor to the word after the current position of the cursor.
  • Tab : auto-complete command.

沒有留言: