Vidyalelo
Computer Science · Q7

UNIX

Engineering and GATE · Computer Science · question 7

Q7

Which of the following keys is used to replace a single character with new text?

A.
S
B.
s
Answer
C.
r
D.
C
E.
None of the above

Answer: Option B

Solution

Answer: Option B
Solution:
In Unix command line editors like vi or Vim, the s key is used in the command mode to replace a single character under the cursor with new text. After pressing s, you can enter the replacement text, and the character under the cursor will be replaced with it.
So, s is the correct key to replace a single character with new text.