Q. In Unix ‘grep’ command is used for :

A
Change attribute of a file
B
Search of a word in a file
C
Rename a file
D
None of the above
Solution:
  • The grep command is used to search text or searches the given file for lines containing a match to the given strings or words.
  • By default, grep displays the matching lines.
  • Grep is a powerful file pattern searcher in Linux.
Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!