nerdexam
GIAC

GSNA · Question #355

Which of the following commands can you use to search a string 'pwd' in all text files without opening them? (Choose two)

The correct answer is B. grep C. sed. sed and grep are the two commands that can be used to search a specified string in all text files without opening them. sed is a stream editor that is used to perform basic text transformations on an input stream (a file or input from a pipeline).

Linux/Unix System Auditing

Question

Which of the following commands can you use to search a string 'pwd' in all text files without opening them? (Choose two)

Options

  • Avi
  • Bgrep
  • Csed
  • Dlocate

Explanation

sed and grep are the two commands that can be used to search a specified string in all text files without opening them. sed is a stream editor that is used to perform basic text transformations on an input stream (a file or input from a pipeline).

Topics

#grep#sed#string search#Linux commands

Community Discussion

No community discussion yet for this question.

Full GSNA Practice