Copy a line in vi editor
Question
:
What is the command to copy a line in vi editor?
p
dd
yy
x
Answer
:
yy - copy a line
dd- delete a line
p - paste
x - delete a single character
So the answer is C - yy