Which of the following keystrokes will move the cursor to the beginning of the previous word?
-
Ctrl A
-
Ctrl B
-
Esc B
-
Ctrl F
-
Ctrl E
In Unix shell readline and Emacs-style editing, Esc+B (or Alt+B) moves the cursor backward by one word. Ctrl+A moves to the start of the line, Ctrl+E moves to the end, while Ctrl+B and Ctrl+F move by single characters.
To answer this question, we need to understand the different keystrokes and their functions.
Option A) Ctrl + A - This option will move the cursor to the beginning of the current line, not the previous word.
Option B) Ctrl + B - This option will move the cursor back one character at a time, not to the beginning of the previous word.
Option C) Esc + B - This option is correct. This keystroke combination will move the cursor to the beginning of the previous word.
Option D) Ctrl + F - This option will move the cursor forward one character at a time, not to the beginning of the previous word.
Option E) Ctrl + E - This option will move the cursor to the end of the current line, not the beginning of the previous word.
The correct answer is Option C) Esc + B. This option is correct because it will move the cursor to the beginning of the previous word.