logos

With Andrii Grytsenko


Technical Diary - With Andrii Grytsenko

Bash hotkeys

Here is the table of bash hotkeys.

Hotkey Function
ctrl-l clear screen
ctrl-f forward character
ctrl-b back character
esc-b move cursor back by one word
esc-f move cursor forward by one word
ctrl-r search backward starting at the current line and moving `up’ through the history as necessary.
ctrl-s search forward starting at the current line and moving `down’ through the history as necessary.
ctrl-p fetch the previous command from the history list, moving back in the list.
ctrl-n fetch the next command from the history list, moving forward in the list.
esc-< move to the first line in the history.
esc-> Move to the end line in the history.
ctrl-u clear all text from cursor to start of line
ctrl-a move to the start of command
ctrl-e move to the end of command
ctrl-w clear one word back
esc-\ delete all spaces and tabs around point.
ctrl-y yank last cleared word
esc-y yank first cleared word
esc-? list of possible completions of the text before point. (like double TAB)
esc-* insert all possible completions into the line
ctrl-c send signal SIGINT to the current process which is interrupt the command
ctrl-d kills the shell
ctrl-h delete one letter back
ctrl-z put process into the background
esc-p like ctrl-r lets you search through the previously given commands.
esc-. gives the last command you typed.

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categories

Translate