Thursday, December 9, 2010

Moving your cursor in a terminal with bash shell

Moving your cursor in a terminal with bash shell (Mac OS X, and Ubuntu Linux compatible)

Tired of pressing delete 1,000 times to move around in your terminal window? Use these handy shortcuts and spare yourself the repetitve stress inducing, carpal-tunnel-flaring effects of using the command line in Macs and Linux.

My current favorites:

  • ctrl-a: move to front of line
  • ctrl-e: move to end of line
  • ctrl-w: delete word before cursor
  • ctrl-r: search past command history
  • up/down arrow: page through previous commands
  • alt-b / alt-f: move backward/forward one word (without deleting)

No comments: