LPI Exam Questions

which of the following commands will delete the current line at the cursor and the 16 lines followin

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)?

Answer: 17dd

Explanation:
in vi you can prefix every command with the number of repetitions you need to do. in this example the command is "dd" (delete line) and since you want to delete 17 lines, you just prefix dd with 17.