This Web site was designed to work on Internet Explorer 7 and Firefox. Since you are using an antiquated version of Internet Explorer, the site may not look as expected. You are highly encouraged to update your browser to Internet Explorer 7, or better yet, install Firefox which is a free download at http://getfirefox.com.

Colin

Command Line Navigation: Keyboard Shortcuts

Posted on 07/24/2008 by Colin
0 Comments

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!

Tagged:  command line, keyboard shortcuts, linux, unix

Comments

No comments at this time.

Post a Comment

Name

Comment

simple_captcha.jpg
Please type the letters from the image above.