Skip to content

Instantly share code, notes, and snippets.

@BonfaceKilz
Created January 29, 2017 11:40
Show Gist options
  • Save BonfaceKilz/de83fb1bada32348c6bd7b616c230722 to your computer and use it in GitHub Desktop.
Save BonfaceKilz/de83fb1bada32348c6bd7b616c230722 to your computer and use it in GitHub Desktop.
Really useful shortcuts for the terminal

Introduction

Here are a couple of useful shortcuts that are quite useful while working on the terminal

The shortcuts...

  1. Up/ Down Arrows: Move through your last used commands.
  2. Ctrl+left and Ctrl+Right: Jumps between arguments in your commands.
  3. Home and End or Ctrl+a or Ctrl+e: Move your cursor to the beginning and the end of the currently typed command, respectively.
  4. Ctrl+u: Clears the entire line so you can type in a completely new command.
  5. Ctrl+k: This deletes the line from the position of the cursor to the end of the cursor.
  6. Ctrl+w: Deletes the word before the cursor only.
  7. Ctrl+r: Search your command history for something specific.
  8. !!: Runs the most recent command.
  9. !$: Represents the arguments from your last argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment