Vidyalelo
Computer Science · Q4

Linux

Engineering and GATE · Computer Science · question 4

Q4

What command is used with vi editor to delete a single character?

A.
x
Answer
B.
y
C.
a
D.
z
E.
None of the above

Answer: Option A

Solution

Answer: Option A
Solution:
In the vi editor, the x command is used to delete a single character.
When you are in command mode in the vi editor, pressing x will delete the character under the cursor.
This command is useful for making small edits or corrections within a file.
So, in summary, to delete a single character in vi editor, you'd use the x command.