Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anybody out there know the linux keyboard shortcut for skipping words in a command prompt. e.g.,

$ locate pdf | xargs -i ls -l {} | grep something

I'd like to scroll through the command by word by word rather than the default letter by letter.

share|improve this question

migrated from Dec 5 '09 at 1:50

This question came from our site for system and network administrators.

In bash you can use CTRL combined with the left and right arrows or ALT combined with F or B.

See keyboard shortcuts, or readline shortcuts.

share|improve this answer
awesome, thanks! – user19074 Dec 4 '09 at 23:17
Great links! Will make sure to file them away somewhere. – andol Dec 4 '09 at 23:26

In addition to Zoredache's answer, you can find out the full list of keyboard shortcuts currently available for bash by issuing the command:

bind -P

Additionally, if you're more used to vi-style bindings than emacs-style, you can switch with:

set -o vi

and switch back with

set -o emacs
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .