In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Enter the correct vi command without spaces.
Suggested Answer: A
Get Premium LCP-001 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
28 comments · newest first
AV
Avery
10 months ago
I thought it was just 16yy?
RO
Rodrigo
10 months ago
Wait, are you sure it copies 17 lines?
EM
Emeline
10 months ago
Yup, that's the command!
SI
Silvana
11 months ago
It's 17yy for sure!
VO
Vonda
11 months ago
Totally agree, 17yy is correct!
NG
Ngoc
11 months ago
I practiced this last week, and "17yy" sounds familiar, but I can't recall if there's a different way to do it.
DY
Dyan
11 months ago
I feel like I might confuse this with the paste command. Is it really just "17yy"?
LO
Lonny
12 months ago
I remember practicing with similar commands, and I think "17yy" is the right one for copying multiple lines.
FR
France
12 months ago
I think the command might be something like "17yy," but I'm not completely sure if I remember the syntax correctly.
PA
Pamella
12 months ago
Ugh, vi commands are not my strong suit. Let me think this through step-by-step...17yy, right? I hope that's correct.
NE
Nelida
1 year ago
17yy, got it! This is a classic vi question, I feel confident I can nail this one.
PH
Phuong
1 year ago
Wait, is it 17y or 17yy? I'm a little fuzzy on the exact vi command for this.
SH
Shawna
1 year ago
Okay, I'm pretty sure it's 17yy to copy the current line and the 16 lines below it. Gotta love those vi shortcuts!
DE
Denise
1 year ago
Hmm, I think the 17yy command should do the trick. Let me double-check that in the vi cheat sheet.
CA
Catalina
1 year ago
I'm not sure, but it makes sense that 17yy would copy 17 lines in vi.
JA
Jacqueline
1 year ago
I agree with Peggy, 17yy will copy 17 lines in vi.
SK
Skye
1 year ago
17yy? Sounds like a lot of work. I'd just use the mouse and click-and-drag instead.
MI
Mitsue
1 year ago
Keyboard shortcuts definitely make editing text more efficient in the long run.
NU
Nu
1 year ago
I agree, it may seem like a lot of work at first, but it's worth learning the shortcuts.
GL
Gladys
1 year ago
True, using keyboard shortcuts can be much faster once you get the hang of it.
YO
Yong
1 year ago
Real programmers use keyboard shortcuts, not the mouse.
PE
Peggy
1 year ago
I think the correct vi command is 17yy.
LY
Lynelle
1 year ago
17yy? That's some heavy-duty copying. I hope my cursor's not on the wrong line!
DO
Dorian
1 year ago
17yy? More like 'copy and paste the entire document' amirite?
ST
Staci
1 year ago
Yeah, 17yy is a quick way to copy a bunch of lines in vi.
TW
Twana
1 year ago
That's right! 17yy will copy the current line and the following 16 lines.
AU
Audra
1 year ago
A) 17yy
TA
Tammara
1 year ago
What vi command will copy from the current line and the following 16 lines?