Table B-10. emacs mode commands
Command | Meaning |
---|
CTRL-A | Move to beginning of line |
CTRL-B | Move backward one character |
CTRL-D | Delete one character forward |
CTRL-E | Move to end of line |
CTRL-F | Move forward one character |
CTRL-G | Abort the current editing command and ring the terminal bell |
CTRL-J | Same as RETURN |
CTRL-K | Delete (kill) forward to end of line |
CTRL-L | Clear screen and redisplay the line |
CTRL-M | Same as RETURN |
CTRL-N | Next line in command history |
CTRL-O | Same as RETURN, then display next line in history file |
CTRL-P | Previous line in command history |
CTRL-R | Search backward |
CTRL-S | Search forward |
CTRL-T | Transpose two characters |
CTRL-U | Kill backward from point to the beginning of line |
CTRL-V | Make the next character typed verbatim |
CTRL-V TAB | Insert a TAB |
CTRL-W | Kill the word behind the cursor, using whitespace as the boundary |
CTRL-X / | List the possible filename completions of the current word |
CTRL-X ~ | List the possible username completions of the current word |
CTRL-X $ | List the possible shell variable completions of the current word |
CTRL-X @ | List the possible hostname completions of the current word |
CTRL-X ! | List the possible command name completions of the current word |
CTRL-X ( | Begin saving characters into the current keyboard macro |
CTRL-X ) | Stop saving characters into the current keyboard macro |
CTRL-X e | Re-execute the last keyboard macro defined |
CTRL-X CTRL-R | Read in the contents of the readline initialization file |
CTRL-X CTRL-V | Display version information on this instance of bash |
CTRL-Y | Retrieve (yank) last item killed |
DEL | Delete one character backward |
CTRL-[ | Same as ESC (most keyboards) |
ESC-B | Move one word backward |
ESC-C | Change word after point to all capital letters |
ESC-D | Delete one word forward |
ESC-F | Move one word forward |
ESC-L | Change word after point to all lowercase letters |
ESC-N | Non-incremental forward search |
ESC-P | Non-incremental reverse search |
ESC-R | Undo all the changes made to this line |
ESC-T | Transpose two words |
ESC-U | Change word after point to all uppercase letters |
ESC-CTRL-E | Perform shell alias, history, and word expansion on the line |
ESC-CTRL-H | Delete one word backward |
ESC-CTRL-Y | Insert the first argument to the previous command (usually the second word) at point |
ESC-DEL | Delete one word backward |
ESC-^ | Perform history expansion on the line |
ESC-< | Move to first line of history file |
ESC-> | Move to last line of history file |
ESC-. | Insert last word in previous command line after point |
ESC-_ | Same as above |
TAB | Attempt filename completion on current word |
ESC-? | List the possible completions of the text before point |
ESC-/ | Attempt filename completion on current word |
ESC-~ | Attempt username completion on current word |
ESC-$ | Attempt variable completion on current word |
ESC-@ | Attempt hostname completion on current word |
ESC-! | Attempt command name completion on current word |
ESC-TAB | Attempt completion from text in the command history |
ESC-~ | Attempt tilde expansion on the current word |
ESC-\ | Delete all the spaces and TABs around point |
ESC-* | Insert all of the completions that would be generated by ESC-= before point |
ESC-= | List the possible completions before point |
ESC-{ | Attempt filename completion and return the list to the shell enclosed within braces |