Note: For mac users, you'll need to open the Settings for Terminal and go to the Profiles tab, and open the Keyboard sub-tab, and check the option "Use Option as Meta key"
source: http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/
- Ctrl + a – go to the start of the command line
- Ctrl + e – go to the end of the command line
- Ctrl + k – delete from cursor to the end of the command line
- Ctrl + u – delete from cursor to the start of the command line