OK, so I claim this is for MAC OSX. The reason for the title is all of the MacaniacS have inflicted command line questions in the bash shell. I have inflicted myself with users and created the SOS helpdesk, inadvertently, of course. My own pain, when really will I learn.
So yes, BASH is the target of discussion and this is just the keystrokes in the BASH environment.
Reality must be stated here in terms of applicablity of BASH and therefore in terms of BASH OSX
Linux
Unix. Yes, "Waldo" you are correct the TITLE should be BASH Command Line Keystrokes; now leave me alone. :-)
So here they are:
C- : Control Key M- : Meta-Key
| C-b | Move back one character. |
| C-f | Move forward one character. |
| C-d | Delete the character underneath the cursor. |
| C-_ | Undo the last thing that you did. You can undo all the way back to an empty line. |
| C-a | Move to the start of the line. |
| C-e | Move to the end of the line. |
| M-f | Move forward a word. <*> |
| M-b | Move backward a word. <*> |
| C-l | Clear's the scree, reprinting the current line atthe top of the screen. (That's a lowercase 'L' not a one '1'.) |
| C-k | Erase the text from the current cursor position to the end of the line. |
| M-d | Erase from the cursor to the end of the current word, between words to the next word. (try it) |
| DEL | Delete the character left of the cursor. |
| M-DEL | Erase from the cursor the start of the previous word, between words to the start of the previous word. (try it) |
| C-w | Erase from the cursor to the previous whitespace. The Word boundries different from M-DEL |
| C-y | Yank the most recent slaughtered tet back into the bufferat the current cursor position |
| M-y | Rotate the slaughter-ring and yank the new top. |
| C-y | Yank the most recent slaughtered text back into the buffer at the current cursor position |
| M-y | Rotate the slaughter-ring and yank the new top. |
* If you do not have a META-key use the ESC key than the action key ie: Meta-b = Press Esc first, secondarily press b. This will move the command BACKWARD one word. In this case we have METAFIED the 'k', hence thisprocess is known as METAFYING.