How's about some handy-dandy command-line keyboard shortcuts for *nix? (*nix = Unix, Linux, Mac OSX, etc.)
These are all based on Emacs, which I never use (I prefer Textmate for most coding and vim/vi for changes on remote servers). A dash (-) means hold the first button down while you press the second, and a comma (,) means press the first, release it, then press the second.
- Go to the start of the line: Ctrl-a
- Go to the end of the line: Ctrl-e
- Go back a word: Esc,b
- Go forward a word: Esc,f
- Delete everything from the cursor to the beginning of the line: Ctrl-u
- Delete everything from the cursor to the end of the line: Ctrl-k
And don't forget that the up and down arrows are your friend when you want to do something again!
Enjoy your extra 3 seconds per messed-up command!





Post a Comment