Pass Your DP-750 Exam Faster – U.S. Independence Day Sale – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 3 Question 96 Discussion

In the vi editor, which of the following commands will copy the current line into the vi buffer?
A) c and E) 1y
B) cc
C) 1c
D) yy

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
7 months ago
'cc' actually deletes the line, not copies it!
upvoted 0 times
...
Cyril
7 months ago
I thought '1y' would work too, but not sure.
upvoted 0 times
...
Adelle
7 months ago
Wait, isn't 'cc' for cutting the line?
upvoted 0 times
...
Felix
8 months ago
I agree, 'yy' is the way to go!
upvoted 0 times
...
Jovita
8 months ago
The command to copy the current line is definitely 'yy'.
upvoted 0 times
...
Luisa
8 months ago
I definitely recall "yy" being used for copying, but I might mix it up with other commands sometimes.
upvoted 0 times
...
Yuki
8 months ago
I feel like "1y" could be a valid option, but it seems less common than "yy."
upvoted 0 times
...
Estrella
8 months ago
I remember practicing with "cc" for changing lines, but copying might be different.
upvoted 0 times
...
Truman
9 months ago
I think the command to copy a line is "yy," but I’m not completely sure.
upvoted 0 times
...
Dominque
9 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
9 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
9 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
9 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
9 months ago
I'm pretty sure the answer is D. yy is the vi command to copy the current line.
upvoted 0 times
...
Salome
1 year 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
1 year ago
Hmm, I'm gonna go with B) cc. It just sounds like it should copy the line, you know?
upvoted 0 times
...
Richelle
1 year 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
12 months ago
User 4: D) yy is definitely the way to go in vi.
upvoted 0 times
...
Tori
1 year ago
User 3: I always use yy for copying in vi, it's so efficient.
upvoted 0 times
...
Yen
1 year ago
User 2: Yeah, I agree. yy copies the current line in vi.
upvoted 0 times
...
Ivan
1 year ago
User 1: I think the answer is D) yy
upvoted 0 times
...
...
Emerson
1 year 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
1 year ago
C) 1c
upvoted 0 times
...
Vicente
1 year ago
B) cc
upvoted 0 times
...
Glen
1 year ago
A) c
upvoted 0 times
...
...
Geraldo
1 year ago
I'm not sure, but I think the answer might be B) cc instead of D) yy.
upvoted 0 times
...
Alysa
1 year ago
I agree with Ronald, D) yy makes sense because yy is used to yank (copy) lines in vi.
upvoted 0 times
...
Ronald
1 year ago
I think the answer is D) yy.
upvoted 0 times
...
Lanie
1 year 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
1 year ago
Thanks for clarifying, I'll remember that for next time
upvoted 0 times
...
Vi
1 year ago
Actually, it's D) yy. That's the correct command to copy the current line
upvoted 0 times
...
Deangelo
1 year ago
No, I believe it's A) c
upvoted 0 times
...
Felicidad
1 year ago
I think the answer is D) yy
upvoted 0 times
...
...

Save Cancel