The grep command searches input files for lines matching a specified pattern and prints those entire lines. It does not just output the matched pattern itself, nor is its primary definition restricted to conditional or multi-pattern searches, making the other options incorrect.