New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 3 Question 96 Discussion

Actual exam question for LPI's 101-500 exam
Question #: 96
Topic #: 3
[All 101-500 Questions]

In the vi editor, which of the following commands will copy the current line into the vi buffer?

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

0/2000 characters
Ivan
3 months ago
'cc' actually deletes the line, not copies it!
upvoted 0 times
...
Cyril
3 months ago
I thought '1y' would work too, but not sure.
upvoted 0 times
...
Adelle
3 months ago
Wait, isn't 'cc' for cutting the line?
upvoted 0 times
...
Felix
4 months ago
I agree, 'yy' is the way to go!
upvoted 0 times
...
Jovita
4 months ago
The command to copy the current line is definitely 'yy'.
upvoted 0 times
...
Luisa
4 months ago
I definitely recall "yy" being used for copying, but I might mix it up with other commands sometimes.
upvoted 0 times
...
Yuki
4 months ago
I feel like "1y" could be a valid option, but it seems less common than "yy."
upvoted 0 times
...
Estrella
4 months ago
I remember practicing with "cc" for changing lines, but copying might be different.
upvoted 0 times
...
Truman
5 months ago
I think the command to copy a line is "yy," but I’m not completely sure.
upvoted 0 times
...
Dominque
5 months ago
Ah, I remember now - the command to copy the current line in vi is yy. That's definitely the right answer.
upvoted 0 times
...
Sheridan
5 months ago
I'm a bit confused by the options. I don't recognize some of these commands, so I'll have to guess on this one.
upvoted 0 times
...
Melinda
5 months ago
D. yy seems like the most logical choice here. I've used that command before to copy lines in vi.
upvoted 0 times
...
Jerry
5 months ago
Hmm, I'm a bit unsure about this one. I know there are a lot of different vi commands, so I'll have to think it through carefully.
upvoted 0 times
...
Darci
5 months ago
I'm pretty sure the answer is D. yy is the vi command to copy the current line.
upvoted 0 times
...
Salome
9 months ago
Wait, there's a vi editor? I thought we were all using Emacs these days. What is this, the 90s?
upvoted 0 times
...
Rosalyn
9 months ago
Hmm, I'm gonna go with B) cc. It just sounds like it should copy the line, you know?
upvoted 0 times
...
Richelle
9 months ago
D) yy, of course! Vi might be old-school, but it's still the best for hardcore terminal junkies like me.
upvoted 0 times
Helga
8 months ago
User 4: D) yy is definitely the way to go in vi.
upvoted 0 times
...
Tori
8 months ago
User 3: I always use yy for copying in vi, it's so efficient.
upvoted 0 times
...
Yen
9 months ago
User 2: Yeah, I agree. yy copies the current line in vi.
upvoted 0 times
...
Ivan
9 months ago
User 1: I think the answer is D) yy
upvoted 0 times
...
...
Emerson
10 months ago
I always mix up the copy and paste commands in vi. Is there an app that can just do it for me?
upvoted 0 times
Kattie
9 months ago
C) 1c
upvoted 0 times
...
Vicente
9 months ago
B) cc
upvoted 0 times
...
Glen
9 months ago
A) c
upvoted 0 times
...
...
Geraldo
10 months ago
I'm not sure, but I think the answer might be B) cc instead of D) yy.
upvoted 0 times
...
Alysa
10 months ago
I agree with Ronald, D) yy makes sense because yy is used to yank (copy) lines in vi.
upvoted 0 times
...
Ronald
11 months ago
I think the answer is D) yy.
upvoted 0 times
...
Lanie
11 months ago
D) yy is the correct answer. It's a classic vi command that copies the current line into the buffer.
upvoted 0 times
Dylan
10 months ago
Thanks for clarifying, I'll remember that for next time
upvoted 0 times
...
Vi
10 months ago
Actually, it's D) yy. That's the correct command to copy the current line
upvoted 0 times
...
Deangelo
10 months ago
No, I believe it's A) c
upvoted 0 times
...
Felicidad
10 months ago
I think the answer is D) yy
upvoted 0 times
...
...

Save Cancel