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…
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)- A8% (2)
- B4% (1)
- D88% (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
Community Discussion
No community discussion yet for this question.