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

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

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.



Leave a Reply 0

Your email address will not be published. Required fields are marked *