Question 460
A Linux administrator faces this situation: A user navigates a remote vi session on a minimal console that does not send reliable arrow-key sequences. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Use h, j, k, and l to move left, down, up, and right respectively. This corrects the case-specific failure. First verify: Identify current vi normal mode and recall its portable movement keys. Then demonstrate success: The cursor moves in the requested directions without relying on terminal arrow keys.
Incorrect Answers
In normal mode use :wq to write the file and quit the editor. That would matter when an administrator changed a vi buffer and needs to save the edits and exit cleanly. The relevant distinction in this case is: Use h, j, k, and l to move left, down, up, and right respectively.
Use :q! in normal mode to quit and discard the current buffer changes. That would matter when a mistaken edit in vi must be abandoned without writing a damaged configuration. It does not address this case's requirement: A user navigates a remote vi session on a minimal console that does not send reliable arrow-key sequences.
Press i to enter insert mode and Escape to return to normal mode after editing. That would matter when a user opens a configuration in vi and cannot type text because keystrokes move the cursor. That separate mechanism does not verify the needed Linux administration outcome in this case.