Page 1 of 1

Bash Shortcuts

Posted: Mon Jul 18, 2011 4:01 pm
by Nuwan4U
Ctrl-a -> go to the start of command line
Ctrl-e -> go to the end of command line
Ctrl-p -> previous command in history
Ctrl-n -> next command in history
Ctrl-f -> next character in command line
Ctrl-b -> previous character in command line
Ctrl-r -> reverse search in history file
Ctrl-d -> delete current character
Ctrl-k -> delete from the prompt to the end of command line
Ctrl-_ -> undo (yes, but limited)
Meta-< -> go to beginning of history file
Meta-> -> go to end of history file
Meta-f -> go to next word in command line
Meta-b -> go to previous word in command line
Meta-d -> delete next word in command line (from the actual position of the prompt)

Re: Bash Shortcuts

Posted: Mon Jul 18, 2011 4:29 pm
by Neo
Useful post. REP+

Re: Bash Shortcuts

Posted: Fri Oct 07, 2011 1:56 pm
by SemiconductorCat
bash supports two modes ,the above commands are works fine in the emacs mode.

#set -o emacs

bash have several configuration files. And nothing is hard coded, you can configure them as you need.