BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 101-500 Exam - Topic 3 Question 96 Discussion

Posted by Von on Sep 12, 2024 at 10:32 AM

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

Suggested Answer: A, E

Get Premium 101-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
33 comments · newest first
IV
Ivan 12 months ago
'cc' actually deletes the line, not copies it!
CY
Cyril 1 year ago
I thought '1y' would work too, but not sure.
AD
Adelle 1 year ago
Wait, isn't 'cc' for cutting the line?
FE
Felix 1 year ago
I agree, 'yy' is the way to go!
JO
Jovita 1 year ago
The command to copy the current line is definitely 'yy'.
LU
Luisa 1 year ago
I definitely recall "yy" being used for copying, but I might mix it up with other commands sometimes.
YU
Yuki 1 year ago
I feel like "1y" could be a valid option, but it seems less common than "yy."
ES
Estrella 1 year ago
I remember practicing with "cc" for changing lines, but copying might be different.
TR
Truman 1 year ago
I think the command to copy a line is "yy," but I’m not completely sure.
DO
Dominque 1 year ago
Ah, I remember now - the command to copy the current line in vi is yy. That's definitely the right answer.
SH
Sheridan 1 year 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.
ME
Melinda 1 year ago
D. yy seems like the most logical choice here. I've used that command before to copy lines in vi.
JE
Jerry 1 year 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.
DA
Darci 1 year ago
I'm pretty sure the answer is D. yy is the vi command to copy the current line.
SA
Salome 2 years ago
Wait, there's a vi editor? I thought we were all using Emacs these days. What is this, the 90s?
RO
Rosalyn 2 years ago
Hmm, I'm gonna go with B) cc. It just sounds like it should copy the line, you know?
RI
Richelle 2 years ago
D) yy, of course! Vi might be old-school, but it's still the best for hardcore terminal junkies like me.
HE
Helga 1 year ago
↳ replying to Richelle
User 4: D) yy is definitely the way to go in vi.
TO
Tori 1 year ago
↳ replying to Richelle
User 3: I always use yy for copying in vi, it's so efficient.
YE
Yen 1 year ago
↳ replying to Richelle
User 2: Yeah, I agree. yy copies the current line in vi.
IV
Ivan 1 year ago
↳ replying to Richelle
User 1: I think the answer is D) yy
EM
Emerson 2 years ago
I always mix up the copy and paste commands in vi. Is there an app that can just do it for me?
KA
Kattie 1 year ago
↳ replying to Emerson
C) 1c
VI
Vicente 1 year ago
↳ replying to Emerson
B) cc
GL
Glen 2 years ago
↳ replying to Emerson
A) c
GE
Geraldo 2 years ago
I'm not sure, but I think the answer might be B) cc instead of D) yy.
AL
Alysa 2 years ago
I agree with Ronald, D) yy makes sense because yy is used to yank (copy) lines in vi.
RO
Ronald 2 years ago
I think the answer is D) yy.
LA
Lanie 2 years ago
D) yy is the correct answer. It's a classic vi command that copies the current line into the buffer.
DY
Dylan 2 years ago
↳ replying to Lanie
Thanks for clarifying, I'll remember that for next time
VI
Vi 2 years ago
↳ replying to Lanie
Actually, it's D) yy. That's the correct command to copy the current line
DE
Deangelo 2 years ago
↳ replying to Lanie
No, I believe it's A) c
FE
Felicidad 2 years ago
↳ replying to Lanie
I think the answer is D) yy
0/2000 characters

Save Cancel