Multiple choice › Shell scripts
Shell scripts
1. Shell scripts
Which command searches for the word error inside the file log.txt?
- grep "error" log.txt
- mkdir error log.txt
- touch error
- cd log.txt error
Answer
A
grep searches text. mkdir makes a directory, touch creates an empty file, cd changes directory.