exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 38 discussion

Actual exam question from LPI's 101-500
Question #: 38
Topic #: 1
[All 101-500 Questions]

Which of the following vi commands deletes two lines, the current and the following line?

  • A. d2
  • B. 2d
  • C. 2dd
  • D. dd2
  • E. de12
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mriron
Highly Voted 3 years, 6 months ago
2dd is correct answer
upvoted 12 times
mvpVN
3 years, 4 months ago
Correct. 2dd deletes two lines the cursor is on
upvoted 5 times
...
...
Ninymo
Most Recent 3 months, 3 weeks ago
Answer: C
upvoted 1 times
...
kipngge
1 year, 11 months ago
Answer is 2dd https://linuxize.com/post/vim-delete-line/
upvoted 2 times
...
aMiPL
3 years, 3 months ago
2dd easy to test in vi. Correct! If you press one 'd' it won't do anything.
upvoted 3 times
...
demarko
3 years, 7 months ago
Answer is B = 2d
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago