Multiple choice technology programming languages

Which of these commands finds all lines on which the word "Linux" occurs and then deletes them in vi editor

  1. g:Linux/d

  2. :g/Linux/d

  3. g/d/Linux

  4. Linux/:g/d

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The vi editor command :g/Linux/d globally searches for lines containing 'Linux' and deletes them. The g prefix applies the command to all matching lines, /Linux/ is the search pattern, and d is the delete operation. This is a powerful global search-and-delete operation.