Multiple choice technology platforms and products

:g/pattern/ command will display only the lines matching the given pattern.

  1. True

  2. False

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

In vi/ex editor, the command :g/pattern/ (without a trailing action) defaults to printing all lines that match the specified pattern. Thus, it displays only the matching lines.