LPI Exam Questions

In the vi editor, which of the following commands will delete the current line at the cursor and the

In the vi editor, which of the following commands will delete the current line at the cursor and the
16 lines following it (17 lines total)?

A.
17d

B.
17dd

C.
17x

D.
d17d

E.
16d

Explanation/Reference:
Alternative: Answer B or D ist correct!

17x just deletes 17 characters
17d or 16d is waiting for additional command input (besides 16dd would delete only 16 lines)