Skip to content

Instantly share code, notes, and snippets.

@mwbrooks
Created March 11, 2010 18:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwbrooks/329487 to your computer and use it in GitHub Desktop.
Save mwbrooks/329487 to your computer and use it in GitHub Desktop.
# Are you using the BASH shell?
echo $SHELL # /bin/bash
#
# Day-to-day shortcuts for the BASH shell
# ---------------------------------------
#
# up/down arrows => View your command history
#
# tab => Auto-complete file and directory names from ...
# => your current path (pwd) and ...
# => your $PATH environment (echo $PATH)
#
# ctrl + u => Clear everything before the cursor.
# => Clears the command-line if your cursor is at the end.
#
# ctrl + k => Clears all characters after the cursor.
#
# ctrl + w => Clears the word before the cursor.
# => Useful when editing a previous command.
#
# ctrl + a => Move to the start of the line
# => Same as the HOME key
#
# ctrl + e => Move to end of the line
# => Same as the END key
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment