bind '"\C-f": forward-word'

Category: Shell & Bash

bind '"\C-f": forward-word'

Bind Ctrl+F to move forward one word in readline

Creates a custom keyboard shortcut. This example makes Ctrl+F jump forward one word while typing a command.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.