LPIC-1 Exam 101 v5 (Linux Administrator) — Question 80
Which of the following commands can perform searches on file contents using regular expressions?
Answer options
- A. find
- B. locate
- C. grep
- D. reggrep
- E. pgrep
Correct answer: C
Explanation
The correct answer is C, grep, as it is specifically designed for searching text using regular expressions. The other options, such as find and locate, are used for locating files rather than searching their contents, while reggrep and pgrep are not standard commands for this purpose.