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)
Bash Shortcuts
Re: Bash Shortcuts
Useful post. REP+
- SemiconductorCat
- Major
- Posts: 455
- Joined: Mon Aug 22, 2011 8:42 pm
- Location: currently in hyperspace
Re: Bash Shortcuts
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.
#set -o emacs
bash have several configuration files. And nothing is hard coded, you can configure them as you need.