command to find a string inside a file.
B
Correct answer
Explanation
The grep command is specifically designed to search for patterns (strings) inside files. The find command (A) searches for files and directories by name/attributes, not content within files. Search (C) is not a standard Unix command. Grep is the standard tool for content searching.