LPI
101-400 · Question #382
The file myfile.txt contains the following data: joe:x:100:100:Joe:/home/joe:/bin/bash mike:x:101:101:Mike:/home/mike:/bin/sh kevin:x:102:102:Kevin:/home/kevin:/bin/sh…
The correct answer is B. home. See the full explanation below for the reasoning.
Question
The file myfile.txt contains the following data: joe:x:100:100:Joe:/home/joe:/bin/bash mike:x:101:101:Mike:/home/mike:/bin/sh kevin:x:102:102:Kevin:/home/kevin:/bin/sh matt:x:103:103:Matt:/home/matt:/bin/sh What output will be displayed on the screen when the following command is executed: grep -o home myfile.txt
Options
- ANo output will be displayed on the screen
- Bhome
- C/home/joe
- Djoe
How the community answered
(51 responses)- A14% (7)
- B75% (38)
- C4% (2)
- D8% (4)
Community Discussion
No community discussion yet for this question.