TK Study

Multiple choice › Shell scripts

Shell scripts

1. Shell scripts

Which command searches for the word error inside the file log.txt?

  1. grep "error" log.txt
  2. mkdir error log.txt
  3. touch error
  4. cd log.txt error
Answer

A

grep searches text. mkdir makes a directory, touch creates an empty file, cd changes directory.