CLI keyboard shortcuts

Got this from CJ Pangilinan, through the PLUG mailing lists:


  • Ctrl+S. Scroll lock.

  • Ctrl+Q. Release scroll lock.

  • Home or Ctrl+A. Move the cursor to the beginning of the current line.

  • End or Ctrl+E. Move the cursor to the end of the current line.

  • Alt+B. Move the cursor to the beginning of the current or previous word.

  • Alt+F. Move the cursor to the end of the next word.

  • Ctrl+U. Erase the current line.

  • Ctrl+K. Delete the line from the position of the cursor to the end of the line.

  • Ctrl+W. Delete the word before the cursor.

  • Shift+PageUp. Scroll terminal output up.

  • Shift+PageDown. Scroll terminal output down.

  • Ctrl+L. Does exactly the same as typing the clear command.

  • ArrowUp or Ctrl+P. Scroll up in the history and edit the previously executed commands. To execute them, press Enter like you normally do.

  • ArrowDown or Ctrl+N. Scroll down in the history and edit the next commands.

  • Ctrl+R. Find the last command that contained the letters you're typing.

  • Ctrl+C. Kill the current process.

  • Ctrl+Z. Send the current process to background. Type the command fg to get the process back.

  • Ctrl+D. Log out from the current terminal.



Thanks, CJ!

Comments

Popular posts from this blog

Pull files off Android phone