XK0-005 · Question #10530
An engineer needs to insert a character at the end of the current line in the vi text editor. Which of the following will allow the engineer to complete this task?
The correct answer is D. A. In vi, pressing 'A' (uppercase) moves the cursor to the end of the current line and enters Insert mode, allowing the user to append characters there. Lowercase 'i' enters Insert mode before the current cursor position, not at the end of the line. 'r' replaces only a single…
Question
Options
- Ap
- Br
- Cbb
- DA
- Ei
How the community answered
(62 responses)- B5% (3)
- C2% (1)
- D90% (56)
- E3% (2)
Explanation
In vi, pressing 'A' (uppercase) moves the cursor to the end of the current line and enters Insert mode, allowing the user to append characters there. Lowercase 'i' enters Insert mode before the current cursor position, not at the end of the line. 'r' replaces only a single character under the cursor. 'p' pastes previously yanked or deleted text after the cursor. 'bb' moves the cursor backward two words in Normal mode without entering Insert mode. 'A' is the correct command to append at the end of the line.
Topics
Community Discussion
No community discussion yet for this question.