nerdexam
CompTIA

220-1002 · Question #489

An administrator wants to search a file on a Linux server for the plus symbol (+). Which of the following will the administrator MOST likely use?

The correct answer is D. grep. grep (Global Regular Expression Print) is the standard Linux command-line utility for searching text within files using patterns or strings. The administrator would run a command such as 'grep -F "+" filename' to find all lines containing the plus symbol. 'cat' displays file…

Hardware and network troubleshooting

Question

An administrator wants to search a file on a Linux server for the plus symbol (+). Which of the following will the administrator MOST likely use?

Options

  • A12
  • Bsh
  • Ccat
  • Dgrep

How the community answered

(24 responses)
  • A
    8% (2)
  • B
    4% (1)
  • D
    88% (21)

Explanation

grep (Global Regular Expression Print) is the standard Linux command-line utility for searching text within files using patterns or strings. The administrator would run a command such as 'grep -F "+" filename' to find all lines containing the plus symbol. 'cat' displays file contents but does not search. 'sh' is a shell interpreter. '12' is not a valid Linux search command. grep is the correct and most common tool for text pattern searching in Linux files.

Topics

#grep#Linux#file search#command line

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice